{heading}
{documents.length}
{#if yearRange}
{yearRange}
{/if} {#if documents.length > 1}
(sortDir = sortDir === 'DESC' ? 'ASC' : 'DESC')} class="ml-auto text-xs font-bold tracking-widest text-ink-3 uppercase transition-colors hover:text-ink" > {sortDir === 'DESC' ? m.conv_sort_newest() : m.conv_sort_oldest()}
{/if}
{#if documents.length === 0}
{emptyMessage}
{:else}
{#each visibleDocuments as doc (doc.id)}
{doc.title || doc.originalFilename}
{doc.documentDate ? formatDate(doc.documentDate) : m.doc_no_date()}
{#if doc.location}
•
{doc.location}
{/if}
{doc.status}
{/each}
{#if documents.length > DOCS_PREVIEW_LIMIT && !showAll}
(showAll = true)} class="mt-3 text-xs font-bold tracking-widest text-ink/50 uppercase transition-colors hover:text-ink" > {m.person_show_more({ count: documents.length - DOCS_PREVIEW_LIMIT })}
{/if} {/if}