Use an eye icon for sensitive images

This commit is contained in:
jaina heartles 2022-12-13 02:16:13 -08:00
parent a49131f6bf
commit 07413747c2

View file

@ -6,7 +6,12 @@
<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| =}
<td class="icon"><i class="fa-solid fa-file"></i></td>
<td class="icon">
{= #if $file.meta.sensitive =}
<i class="fa-solid fa-eye-slash"></i></td>
{= #else =}
<i class="fa-solid fa-file"></i></td>
{= /if =}
<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>