]> git.r.bdr.sh - rbdr/forum/blobdiff - src/components/actions/topic.svelte
Add tests for header
[rbdr/forum] / src / components / actions / topic.svelte
diff --git a/src/components/actions/topic.svelte b/src/components/actions/topic.svelte
new file mode 100644 (file)
index 0000000..e2f59c9
--- /dev/null
@@ -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>