« get me outta code hell

content: generateArtTagGalleryPage: stub message for yet unfeatured - 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>2023-10-06 01:30:09 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-10-06 01:30:09 -0300
commit3d7d9944fd74e21db64b6d3e39375c27094b5e46 (patch)
treecc2d7d48025beb59f84c48741cbbc745ef236713 /src/content
parente327490387c97c79fd63abc88cfee115679499ac (diff)
content: generateArtTagGalleryPage: stub message for yet unfeatured
Diffstat (limited to 'src/content')
-rw-r--r--src/content/dependencies/generateArtTagGalleryPage.js16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/content/dependencies/generateArtTagGalleryPage.js b/src/content/dependencies/generateArtTagGalleryPage.js
index b9e0f2c5..0da62812 100644
--- a/src/content/dependencies/generateArtTagGalleryPage.js
+++ b/src/content/dependencies/generateArtTagGalleryPage.js
@@ -123,11 +123,17 @@ export default {
             .slot('infoPageLink', relations.infoPageLink),
 
           html.tag('p', {class: 'quick-info'},
-            language.$('artTagGalleryPage.infoLine', {
-              coverArts: language.countArtworks(data.numArtworks, {
-                unit: true,
-              }),
-            })),
+            (data.numArtworks === 0
+              ? [
+                  language.$('artTagGalleryPage.infoLine.notFeatured'),
+                  html.tag('br'),
+                  language.$('artTagGalleryPage.infoLine.callToAction'),
+                ]
+              : language.$('artTagGalleryPage.infoLine', {
+                  coverArts: language.countArtworks(data.numArtworks, {
+                    unit: true,
+                  }),
+                }))),
 
           relations.ancestorLinks &&
             html.tag('p', {class: 'quick-info'},