« get me outta code hell

client, content, css: group contributions filter notice & clear link - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2026-06-10 07:18:13 -0300
committer(quasar) nebula <qznebula@protonmail.com>2026-06-10 07:20:40 -0300
commitb5cfd785360ced74970b06c9c1e6436bf7281b72 (patch)
tree6fbff6e9930d852aad80247e180af274ec76b897 /src/content
parent9c946df709fbeca15bc6e76435cbe30269a2bd3a (diff)
client, content, css: group contributions filter notice & clear link
Diffstat (limited to 'src/content')
-rw-r--r--src/content/dependencies/generateArtistInfoPageChunkedList.js20
1 files changed, 18 insertions, 2 deletions
diff --git a/src/content/dependencies/generateArtistInfoPageChunkedList.js b/src/content/dependencies/generateArtistInfoPageChunkedList.js
index 54577885..f9db4265 100644
--- a/src/content/dependencies/generateArtistInfoPageChunkedList.js
+++ b/src/content/dependencies/generateArtistInfoPageChunkedList.js
@@ -11,8 +11,24 @@ export default {
     },
   },
 
-  generate: (slots, {html}) =>
+  generate: (slots, {html, language}) =>
     html.tag('dl',
       {[html.onlyIfContent]: true},
-      [slots.groupInfo, slots.chunks]),
+
+      [
+        slots.groupInfo,
+
+        slots.chunks,
+
+        !html.isBlank(slots.groupInfo) &&
+          html.tag('dt', {class: 'filter-notice'},
+            {style: 'display: none'},
+
+            language.encapsulate('artistPage.filterNotice', capsule =>
+              language.$(capsule, {
+                clear:
+                  html.tag('a', {href: '#'},
+                    language.$(capsule, 'clear')),
+              }))),
+      ]),
 };