add table for displaying dir content

This commit is contained in:
2024-12-04 19:39:37 +01:00
parent 1ec2ed1d00
commit e70c6db10f
19 changed files with 1122 additions and 5 deletions

View File

@ -0,0 +1,11 @@
<tr>
<td>
{% if file.type == 'dir' %}
{{ ux_icon('folder:closed', {height: '32px', width: '32px'}) }}
{% else %}
{{ ux_icon('file:default', {height: '32px', width: '32px'}) }}
{% endif %}
</td>
<td>{{ file.name }}</td>
<td>{{ file.size }}</td>
</tr>

View File

@ -0,0 +1,13 @@
<table class="table table-striped table-bordered w-75 mt-5">
<thead>
<tr>
<td>Expand</td>
<th>Name</th>
<th>Size</th>
</thead>
<tbody>
{% for dirContent in content %}
{% include '_partials/_row.html.twig' with {file: dirContent} %}
{% endfor %}
</tbody>
</table>