Added twig extension to format file size, links to download and delete files attached to the book.
This commit is contained in:
@@ -50,10 +50,10 @@
|
||||
<tr>
|
||||
<td>{{ file.id }}</td>
|
||||
<td>{{ file.fileName }}</td>
|
||||
<td>{{ file.fileSize }}</td>
|
||||
<td>{{ file.fileSize | bytes_format }}</td>
|
||||
<td>{{ file.extension }}</td>
|
||||
<td>download</td>
|
||||
<td>remove</td>
|
||||
<td><a href="{{ path('app_file_download', {id: file.id }) }}" class="link-secondary">download</a></td>
|
||||
<td><a href="{{ path('app_file_delete', {id: file.id}) }}" class="link-danger">remove</a></td>
|
||||
</tr>
|
||||
{% else %}
|
||||
<tr>
|
||||
|
||||
Reference in New Issue
Block a user