diff options
| author | Ruben Beltran del Rio <ruben@unlimited.pizza> | 2021-04-22 23:02:02 +0200 |
|---|---|---|
| committer | Ruben Beltran del Rio <ruben@unlimited.pizza> | 2021-04-22 23:02:02 +0200 |
| commit | 55fb920baa9792266be1a6b981f954c622c1eaf9 (patch) | |
| tree | 0016f699d26e6d2226da4748476485713c9fae88 /src/components/actions/topic.svelte | |
| parent | 2ec82213d1dafb17b7a445451fe6e49cff632475 (diff) | |
Add tests for header
Also patches up the leaky abstraction on the actions
Diffstat (limited to 'src/components/actions/topic.svelte')
| -rw-r--r-- | src/components/actions/topic.svelte | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/components/actions/topic.svelte b/src/components/actions/topic.svelte new file mode 100644 index 0000000..e2f59c9 --- /dev/null +++ b/src/components/actions/topic.svelte @@ -0,0 +1,24 @@ +<script> + export let actions; + + import { _ } from 'svelte-i18n'; +</script> + +<li> + <a href="/reply/{actions.id}" title={$_('header.action.reply.title')}> + {@html $_('header.action.reply.display')} + </a> +</li> + +<style> + li { + display: inline; + margin: 5px; + } + + a { + text-decoration: none; + line-height: 3em; + display: inline-block; + } +</style> |