From 55fb920baa9792266be1a6b981f954c622c1eaf9 Mon Sep 17 00:00:00 2001
From: Ruben Beltran del Rio <ruben@unlimited.pizza>
Date: Thu, 22 Apr 2021 23:02:02 +0200
Subject: Add tests for header

Also patches up the leaky abstraction on the actions
---
 src/components/actions/topic.svelte | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)
 create mode 100644 src/components/actions/topic.svelte

(limited to 'src/components/actions/topic.svelte')

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>
-- 
cgit 

