✨ V0.1 Groupes d'accès dans le tableau
This commit is contained in:
parent
6e30de336f
commit
5651251da7
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user