V0.1 Groupes d'accès dans le tableau
Some checks failed
Apply PHP CS Fixer / php-cs-fixer (push) Successful in 18s
CI / build-test (push) Successful in 1m52s
rector / Rector (push) Has been cancelled

This commit is contained in:
Melaine Gérard 2025-02-19 14:12:05 +01:00
parent 6e30de336f
commit 5651251da7

View File

@ -37,6 +37,9 @@
<th scope="col" class="px-6 py-3">
Modifié le
</th>
<th scope="col" class="px-6 py-3">
Groupes d'accès
</th>
<th scope="col" class="px-6 py-3">
Actions
</th>
@ -61,6 +64,22 @@
<td class="px-6 py-4">
{{ file.last_modified|time_diff }}
</td>
<td class="px-6 py-4">
<div class="flex gap-1">
{% if parentDir == null %}
{% set parentDirectory = get_parent_dir(file.path) %}
{% else %}
{% set parentDirectory = parentDir %}
{% endif %}
{% for parentRole in parentDirectory.ownerRole.getHigherRoles() %}
<img class="w-6 h-6" title="{{ parentRole.value }}" src="https://ui-avatars.com/api/?name={{ parentRole.value }}" alt="">
{% endfor %}
<img class="w-6 h-6" title="{{ parentDirectory.ownerRole.value }}" src="https://ui-avatars.com/api/?name={{ parentDirectory.ownerRole.value }}" alt="">
{% for permission in parentDirectory.parentDirectoryPermissions %}
<img class="w-6 h-6" title="{{ permission.role.value }}" src="https://ui-avatars.com/api/?name={{ permission.role.value }}" alt="">
{% endfor %}
</div>
</td>
<td class="px-6 py-4 flex gap-2 light:text-black">
{% if file.type == 'file' %}
<a title="Permet de télécharger le fichier" href="{{ file.url }}" class="hover:text-blue-700 duration-300"><twig:ux:icon class="w-6 h-6" name="fa6-solid:download" /></a>