diff options
| author | Ruben Beltran del Rio <ruben@unlimited.pizza> | 2021-04-20 23:38:02 +0200 |
|---|---|---|
| committer | Ruben Beltran del Rio <ruben@unlimited.pizza> | 2021-04-20 23:38:02 +0200 |
| commit | 47b0bfe47e6f13d549897149b0abc4a72ba8ac88 (patch) | |
| tree | cd694411d47898a4eb10b1c0e6787f81fce6f0e6 /src/components/topic/topic.svelte | |
| parent | 879fa389c2592760def75177eefbd3193e1845c9 (diff) | |
Add tests to second batch of components
- Error Block
- Forum List
- Language Selector
- Post
- Tag
- Topic Summary
Diffstat (limited to 'src/components/topic/topic.svelte')
| -rw-r--r-- | src/components/topic/topic.svelte | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/components/topic/topic.svelte b/src/components/topic/topic.svelte index 181b429..0b73d44 100644 --- a/src/components/topic/topic.svelte +++ b/src/components/topic/topic.svelte @@ -13,28 +13,28 @@ <h1 class="p-name">{topic.title}</h1> <aside class="topic-meta" title={$_('topic.metadata_title')}> {#if topic.forum} - <span class="topic-location" - >{$_('topic.category_location')} - <a href="/f/{topic.forum.id}" class="p-category" - >{topic.forum.glyph} {$_(topic.forum.label)}</a - >.</span - > + <span class="topic-location"> + {$_('topic.category_location')} + <a href="/f/{topic.forum.id}" class="p-category"> + {topic.forum.glyph} {$_(topic.forum.label)} + </a>. + </span> {/if} - <span class="topic-ttl" - ><a class="u-url u-uid" title={$_('topic.permalink_title')} href="/t/{topic.id}" - >({$_('topic.remaining_time', { + <span class="topic-ttl"> + <a class="u-url u-uid" title={$_('topic.permalink_title')} href="/t/{topic.id}"> + ({$_('topic.remaining_time', { values: { remaining: $_(remaining.label, { values: { count: remaining.count } }) } - })})</a - >.</span - > + })}) + </a>. + </span> </aside> {#if topic.tags.length > 0} <aside class="topic-tags" title={$_('topic.tags_title')}> {$_('topic.tags_location')} {#each topic.tags as tag} - <a href="/g/{tag.id}" class="p-category" - >{tag.id}<span class="tag-weight">({tag.weight})</span></a - >{' '} + <a href="/g/{tag.id}" class="p-category"> + {tag.id}<span class="tag-weight">({tag.weight})</span> + </a>{' '} {/each} </aside> {/if} |