feat(geschichten): show blog writers' own drafts on the Geschichten overview (#807) #813
@@ -133,7 +133,26 @@ function removeDocument() {
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<!-- Rows -->
|
||||
<!-- Entwürfe section (blog writers only, unfiltered) -->
|
||||
{#if data.drafts.length > 0}
|
||||
<div class="border-b-2 border-line">
|
||||
<h2 class="px-3 pt-3 pb-1 font-sans text-xs font-bold tracking-widest text-ink-3 uppercase">
|
||||
{m.geschichten_drafts_heading()}
|
||||
<span class="ml-1 font-normal text-ink-3 normal-case"
|
||||
>{m.geschichten_drafts_unfiltered_caption()}</span
|
||||
>
|
||||
</h2>
|
||||
<ul>
|
||||
{#each data.drafts as g (g.id)}
|
||||
<li class="border-b border-line-2 last:border-b-0">
|
||||
<GeschichteListRow geschichte={g} />
|
||||
</li>
|
||||
{/each}
|
||||
</ul>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<!-- Published rows -->
|
||||
{#if data.geschichten.length === 0}
|
||||
<div class="px-4 py-12 text-center font-serif text-sm text-ink-3 italic">
|
||||
{emptyMessage}
|
||||
|
||||
Reference in New Issue
Block a user