diff options
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 |
commit | 3d7d9944fd74e21db64b6d3e39375c27094b5e46 (patch) | |
tree | cc2d7d48025beb59f84c48741cbbc745ef236713 /src/content | |
parent | e327490387c97c79fd63abc88cfee115679499ac (diff) |
content: generateArtTagGalleryPage: stub message for yet unfeatured
Diffstat (limited to 'src/content')
-rw-r--r-- | src/content/dependencies/generateArtTagGalleryPage.js | 16 |
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'}, |