« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies/generateContributionTooltipChronologySection.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/content/dependencies/generateContributionTooltipChronologySection.js')
-rw-r--r--src/content/dependencies/generateContributionTooltipChronologySection.js29
1 files changed, 15 insertions, 14 deletions
diff --git a/src/content/dependencies/generateContributionTooltipChronologySection.js b/src/content/dependencies/generateContributionTooltipChronologySection.js
index 85b19be9..49e5d783 100644
--- a/src/content/dependencies/generateContributionTooltipChronologySection.js
+++ b/src/content/dependencies/generateContributionTooltipChronologySection.js
@@ -29,23 +29,24 @@ export default {
   }),
 
   generate: (relations, {html, language}) =>
-    language.encapsulate('misc.artistLink.chronology', capsule => [
-      html.tag('span', {class: 'chronology-link'},
-        {[html.onlyIfContent]: true},
+    language.encapsulate('misc.artistLink.chronology', capsule =>
+      html.tags([
+        html.tag('span', {class: 'chronology-link'},
+          {[html.onlyIfContent]: true},
 
-        language.$(capsule, 'previous', {
-          [language.onlyIfOptions]: ['thing'],
+          language.$(capsule, 'previous', {
+            [language.onlyIfOptions]: ['thing'],
 
-          thing: relations.previousLink,
-        })),
+            thing: relations.previousLink,
+          })),
 
-      html.tag('span', {class: 'chronology-link'},
-        {[html.onlyIfContent]: true},
+        html.tag('span', {class: 'chronology-link'},
+          {[html.onlyIfContent]: true},
 
-        language.$(capsule, 'next', {
-          [language.onlyIfOptions]: ['thing'],
+          language.$(capsule, 'next', {
+            [language.onlyIfOptions]: ['thing'],
 
-          thing: relations.nextLink,
-        })),
-    ]),
+            thing: relations.nextLink,
+          })),
+      ])),
 };