0 ? 'border-t border-line pt-4' : ''}>
- {#if editingId === thread.id}
-
-
-
-
-
-
-
- {:else}
-
-
-
- {thread.authorName}
- {timeAgo(thread.createdAt)}
- {#if wasEdited(thread)}
-
- {m.comment_edited_label()}
- {timeAgo(thread.updatedAt)}
-
- {/if}
-
-
{thread.content}
-
- {#if canModify(thread)}
-
-
-
-
- {/if}
-
-
- {#if thread.replies.length === 0 && canComment}
-
-
-
- {/if}
- {/if}
+ {@render commentEntry(thread, thread.id, thread.replies.length === 0)}
{#each thread.replies as reply, ri (reply.id)}
- {#if editingId === reply.id}
-
-
-
-
-
-
-
- {:else}
-
-
-
- {reply.authorName}
- {timeAgo(reply.createdAt)}
- {#if wasEdited(reply)}
-
- {m.comment_edited_label()}
- {timeAgo(reply.updatedAt)}
-
- {/if}
-
-
{reply.content}
-
- {#if canModify(reply)}
-
-
-
-
- {/if}
-
-
- {#if ri === thread.replies.length - 1 && canComment}
-
-
-
- {/if}
- {/if}
+ {@render commentEntry(reply, thread.id, ri === thread.replies.length - 1)}
{/each}
-
+
{#if replyingTo === thread.id}
{/each}
-
+
{#if canComment}
+ {m.doc_section_description()} +
+ +{m.form_helper_archive_location()}
+{m.form_label_tags()}
++ {m.form_label_transcription()} +
+ ++ {m.doc_section_who_when()} +
+ +{m.form_date_error()}
+ {/if} +{m.form_label_receivers()}
+- {m.docs_filter_label_tags()} -
-- {msg.text} - {#if msg.link} - {m.upload_duplicate_link()} - {/if} -
- {/each} -- {#each data.documents as doc (doc.id)} --
-
-
-
-
-
-
-
-
-
-
-
-
-
- {doc.documentDate ? formatDate(doc.documentDate) : '—'}
-
- {#if doc.location}
-
-
- {doc.location}
-
- {/if}
-
-
-
-
-
- {m.docs_list_from()}
- {#if doc.sender}
- {doc.sender.firstName} {doc.sender.lastName}
- {:else}
- {m.docs_list_unknown()}
- {/if}
-
-
- {m.docs_list_to()}
- {#if doc.receivers && doc.receivers.length > 0}
-
- {doc.receivers.map((p) => p.firstName + ' ' + p.lastName).join(', ')}
-
- {:else}
- {m.docs_list_unknown()}
- {/if}
-
-
-
-
- {#if doc.tags && doc.tags.length > 0}
-
- {#each doc.tags as tag (tag.id)}
-
- {/each}
-
- {/if}
-
-
-
-
-
-
-
-
-
- {/each}
-
- {:else} - -- {doc.title || doc.originalFilename} -
-{m.docs_empty_heading()}
-- {m.docs_empty_text()} -
- -+ {#each documents as doc (doc.id)} +-
+
+
+
+
+
+
+
+
+
+
+
+ {doc.documentDate ? formatDate(doc.documentDate) : '—'}
+
+ {#if doc.location}
+
+
+ {doc.location}
+
+ {/if}
+
+
+
+
+
+ {m.docs_list_from()}
+ {#if doc.sender}
+ {doc.sender.firstName} {doc.sender.lastName}
+ {:else}
+ {m.docs_list_unknown()}
+ {/if}
+
+
+ {m.docs_list_to()}
+ {#if doc.receivers && doc.receivers.length > 0}
+
+ {doc.receivers.map((p) => p.firstName + ' ' + p.lastName).join(', ')}
+
+ {:else}
+ {m.docs_list_unknown()}
+ {/if}
+
+
+
+
+ {#if doc.tags && doc.tags.length > 0}
+
+ {#each doc.tags as tag (tag.id)}
+
+ {/each}
+
+ {/if}
+
+
+
+
+
+
+
+
+
+ {/each}
+
+ {:else} + ++ {doc.title || doc.originalFilename} +
+{m.docs_empty_heading()}
++ {m.docs_empty_text()} +
+ ++ {msg.text} + {#if msg.link} + {m.upload_duplicate_link()} + {/if} +
+ {/each} ++ {m.docs_filter_label_tags()} +
+{m.admin_section_users()}
- - - {m.admin_btn_new_user()} - -{m.admin_section_tags()}
-- {m.admin_tags_warning()} -
-- {#each data.tags as tag (tag.id)} --
- {#if editingTagId === tag.id}
-
- {:else}
-
- {tag.name}
-
-
-
-
-
- {/if}
-
- {/each}
-
+{m.admin_section_groups()}
-- {m.admin_section_new_group()} -
- -{m.admin_system_backfill_heading()}
-{m.admin_system_backfill_description()}
- - {#if backfillResult !== null} -- {m.admin_system_backfill_success({ count: backfillResult })} -
- {/if} -- {m.admin_system_backfill_hashes_heading()} -
-{m.admin_system_backfill_hashes_description()}
- - {#if backfillHashesResult !== null} -- {m.admin_system_backfill_hashes_success({ count: backfillHashesResult })} -
- {/if} +{m.admin_section_groups()}
++ {m.admin_section_new_group()} +
+ +{m.admin_system_backfill_heading()}
+{m.admin_system_backfill_description()}
+ + {#if backfillResult !== null} ++ {m.admin_system_backfill_success({ count: backfillResult })} +
+ {/if} ++ {m.admin_system_backfill_hashes_heading()} +
+{m.admin_system_backfill_hashes_description()}
+ + {#if backfillHashesResult !== null} ++ {m.admin_system_backfill_hashes_success({ count: backfillHashesResult })} +
+ {/if} +{m.admin_section_tags()}
++ {m.admin_tags_warning()} +
++ {#each tags as tag (tag.id)} +-
+ {#if editingTagId === tag.id}
+
+ {:else}
+
+ {tag.name}
+
+
+
+
+
+ {/if}
+
+ {/each}
+
+{m.admin_section_users()}
+ + + {m.admin_btn_new_user()} + +{m.profile_section_personal()}
- -{m.admin_col_groups()}
- -{m.admin_label_new_password_optional()}
- -+ {m.conv_summary({ count: documents.length, yearFrom, yearTo })} +
+ {:else} ++ {documents.length} +
+ {/if} + {#if canWrite} + + + {m.conv_new_doc_link()} + + {/if} ++ {doc.title || doc.originalFilename} +
+ + + + ++ {m.doc_section_file()} +
+ +