Add icon for headers and avis
This commit is contained in:
parent
434b0e07d0
commit
8edf661afe
1 changed files with 14 additions and 3 deletions
|
@ -3,15 +3,26 @@
|
|||
{#for .dir.children.? |$child| =}
|
||||
<tr>
|
||||
{#switch $child case dir |$dir| =}
|
||||
<td class="icon"></td>
|
||||
<td class="icon"><i class="fa-solid fa-folder-closed"></i></td>
|
||||
<td class="name"><a href="./{$dir.name.?}">{$dir.name.?}</a></td>
|
||||
{#case file |$file| =}
|
||||
{#case file |$file|}
|
||||
<td class="icon">
|
||||
{= #if %user |$u|}
|
||||
{#if $u.avatar_file_id == $file.meta.id =}
|
||||
<i class="fa-solid fa-user"></i>
|
||||
{= #elif $u.header_file_id == $file.meta.id =}
|
||||
<i class="fa-solid fa-heading"></i>
|
||||
{= /if =}
|
||||
{= /if =}
|
||||
</td>
|
||||
<td class="icon">
|
||||
{= #if $file.meta.sensitive =}
|
||||
<i class="fa-solid fa-eye-slash"></i></td>
|
||||
<i class="fa-solid fa-eye-slash"></i>
|
||||
{= #else =}
|
||||
<i class="fa-solid fa-file"></i></td>
|
||||
<i class="fa-solid fa-file"></i>
|
||||
{= /if =}
|
||||
</td>
|
||||
<td class="name"><a href="./{$file.name.?}">{$file.name.?}</a></td>
|
||||
<td class="content-type">{#if $file.meta.content_type |$t|}{$t}{/if}</td>
|
||||
<td class="size">{$file.meta.size}</td>
|
||||
|
|
Loading…
Reference in a new issue