aboutsummaryrefslogtreecommitdiff
path: root/src/lib/components/topic/topic.svelte
diff options
context:
space:
mode:
authorRuben Beltran del Rio <ruben@unlimited.pizza>2022-05-31 01:09:58 +0200
committerRuben Beltran del Rio <ruben@unlimited.pizza>2022-05-31 01:09:58 +0200
commit6ccc6f60fc85e665c8a07a169efbe8d09c9d9e8e (patch)
tree87c397af49b7820b5fb2c0fa3037be2ac4a587e8 /src/lib/components/topic/topic.svelte
parent852ee620f0a2f6a83cf83eba860ca951b66bb7e2 (diff)
Lint, rm unused code
Diffstat (limited to 'src/lib/components/topic/topic.svelte')
-rw-r--r--src/lib/components/topic/topic.svelte19
1 files changed, 13 insertions, 6 deletions
diff --git a/src/lib/components/topic/topic.svelte b/src/lib/components/topic/topic.svelte
index 0715857..7fb4101 100644
--- a/src/lib/components/topic/topic.svelte
+++ b/src/lib/components/topic/topic.svelte
@@ -17,14 +17,21 @@
{#if topic.forum}
<span class="topic-location">
{$_('topic.category_location')}
- <a href="/f/{topic.forum.id}" class="p-category underline text-blue-600 visited:text-purple-500">
+ <a
+ href="/f/{topic.forum.id}"
+ class="p-category underline text-blue-600 visited:text-purple-500"
+ >
{topic.forum.glyph}
{$_(topic.forum.label)}
</a>.
</span>
{/if}
<span class="topic-ttl">
- <a class="u-url u-uid underline text-blue-600 visited:text-purple-500" title={$_('topic.permalink_title')} href="/t/{topic.id}">
+ <a
+ class="u-url u-uid underline text-blue-600 visited:text-purple-500"
+ title={$_('topic.permalink_title')}
+ href="/t/{topic.id}"
+ >
({$_('topic.remaining_time', {
values: { remaining: $_(remaining.label, { values: { count: remaining.count } }) }
})})
@@ -37,13 +44,13 @@
{#each topic.tags as tag}
<a href="/g/{tag.tag}" class="p-category underline text-blue-600 visited:text-purple-500">
{tag.tag}<span class="tag-weight">({tag.count})</span></a
- >{' '}
+ >{' '}
{/each}
</aside>
{/if}
{#if topic.posts}
- {#each topic.posts as post, index}
- <Post {post} {index} count={topic.posts.length} />
- {/each}
+ {#each topic.posts as post, index}
+ <Post {post} {index} count={topic.posts.length} />
+ {/each}
{/if}
</div>