Now with file counts on the search results! Done for the day.

This commit is contained in:
Scott Idem
2024-06-21 16:57:43 -04:00
parent ecf2b3eca8
commit 5211f83f23
3 changed files with 16 additions and 2 deletions

View File

@@ -316,11 +316,21 @@ $: if ($events_trigger == 'load__event_session_obj_li' && $events_slct.event_id)
<a
href="/events_pres_mgmt/session/{session_obj.event_session_id_random}"
class="btn btn-md variant-ghost-secondary hover:variant-filled-secondary min-w-full max-w-md"
title="{session_obj.name} - {session_obj.event_session_id_random}"
>
<span class="fas fa-eye mx-1"></span>
<span class="grow overflow-x-scroll">
<!-- overflow-x-scroll -->
<span class="grow overflow-hidden">
<strong>{session_obj.name}</strong>
</span>
{#if session_obj.file_count_all}
<span class="badge variant-glass-success hover:variant-filled-success" title="{session_obj.file_count}x files under session">
<span class="fas fa-file-alt mx-1"></span>
{session_obj.file_count_all}x
</span>
{:else}
<!-- Nothing -->
{/if}
</a>
</td>
<td>