summaryrefslogtreecommitdiff
path: root/src/components/LallansIssueContributions.astro
diff options
context:
space:
mode:
authorJoe Carstairs <jcarstairs@scottlogic.com>2023-08-08 20:43:00 +0100
committerJoe Carstairs <jcarstairs@scottlogic.com>2023-08-08 20:43:09 +0100
commitc09ab868d42a5c15f36e2ba9f55a9668da46e157 (patch)
tree5816ce5138a30a6c887ea947a3f572e5a150139f /src/components/LallansIssueContributions.astro
parenta2d76427279e15fa0bd46faa64f3e417f33aaa4a (diff)
Nicifies Lallans issues
Diffstat (limited to 'src/components/LallansIssueContributions.astro')
-rw-r--r--src/components/LallansIssueContributions.astro29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/components/LallansIssueContributions.astro b/src/components/LallansIssueContributions.astro
new file mode 100644
index 0000000..73634a2
--- /dev/null
+++ b/src/components/LallansIssueContributions.astro
@@ -0,0 +1,29 @@
+---
+import translate from "../i18n/translate";
+import tSite from '../i18n/translations/site';
+import type { Contribution } from '../types/LallansIssue';
+import type Locale from '../types/Locale';
+
+interface Props {
+ contributions: Contribution[];
+ locale: Locale;
+}
+
+const { contributions, locale } = Astro.props;
+const t = translate(locale);
+---
+
+<section>
+ <h2>Contributions</h2>
+ <ul class="lallans-issue__contributions">
+ { contributions.map(contribution => (
+ <li>
+ <span class="italic">{ contribution.title }</span>
+ { 'author' in contribution ? (
+ <span> { t(tSite, 'by') } { contribution.author }</span>
+ ) : (<></>)
+ }
+ </li>
+ ))}
+ </ul>
+</section> \ No newline at end of file