forked from projects/file-explorer
@ -1,13 +1,24 @@
|
||||
{% if file.name == '..' %}
|
||||
{% set link = routing_service.goBack(app.request) %}
|
||||
{% else %}
|
||||
{% set link = path('app_home', {dirs: app.request.attributes.get('dirs', '/') ~ file.name ~ '/'}) %}
|
||||
{% endif %}
|
||||
|
||||
|
||||
<tr class="border-b">
|
||||
<th scope="row" class="px-6 py-4 font-medium text-gray-900 whitespace-nowrap dark:text-white">
|
||||
{% if file.type == 'dir' %}
|
||||
{{ ux_icon('folder:closed', {height: '32px', width: '32px'}) }}
|
||||
{% else %}
|
||||
{{ ux_icon('file:default', {height: '32px', width: '32px'}) }}
|
||||
{% endif %}
|
||||
<a href="{{ link }}">
|
||||
{% if file.type == 'dir' %}
|
||||
{{ ux_icon('folder:closed', {height: '32px', width: '32px'}) }}
|
||||
{% else %}
|
||||
{{ ux_icon('file:default', {height: '32px', width: '32px'}) }}
|
||||
{% endif %}
|
||||
</a>
|
||||
</th>
|
||||
<td class="px-6 py-4">
|
||||
{{ file.name }}
|
||||
<a href="{{ link }}">
|
||||
{{ file.name }}
|
||||
</a>
|
||||
</td>
|
||||
<td class="px-6 py-4">
|
||||
{{ file.size }}
|
||||
|
Reference in New Issue
Block a user