{#if loading}

Loading

{:else if unit}

Home · Unit

{unit.code}{unit.code2 ? ` / ${unit.code2}` : ""}

{#if authed} {/if}

{unit.name}

{#if unit.description}

{unit.description}

{/if} {#if pinError}

{pinError}

{/if} {#if notes.length > 0 || questions.length > 0}
{/if} {#if visibleNotes.length > 0}

Notes

{#each visibleNotes as note} 0 ? `${timeAgo(note.createdAt)} · ${note.commentCount} comment${note.commentCount === 1 ? "" : "s"}` : timeAgo(note.createdAt)} voteCount={note.voteCount} targetType="note" targetId={note._id} /> {/each} {/if} {#if visibleQuestions.length > 0}

Questions

{#each visibleQuestions as question} 0 ? `${question.authorName} · ${timeAgo(question.createdAt)} · ${question.answerCount} answer${question.answerCount === 1 ? "" : "s"}` : `${question.authorName} · ${timeAgo(question.createdAt)}`} voteCount={question.voteCount} targetType="question" targetId={question._id} /> {/each} {/if} {#if notes.length === 0 && questions.length === 0}

No content for this unit yet.

{:else if searchQuery.trim() && visibleNotes.length === 0 && visibleQuestions.length === 0}

No results in this unit for “{searchQuery.trim()}”.

{/if} {:else}

Unit not found

Home {/if}