« get me outta code hell

content: generateFlashInfoPage: use generateReadCommentaryLine - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2025-09-23 17:14:20 -0300
committer(quasar) nebula <qznebula@protonmail.com>2025-09-23 17:14:20 -0300
commit6f148aedba90d042a4cff0bfc55bc7690e7066e3 (patch)
treec6c0709896cdf48942d65c28d2d6ae6ada42ec77 /src/content/dependencies
parentc55c061be21178b13b621d80cd8e2b83bba8ef97 (diff)
content: generateFlashInfoPage: use generateReadCommentaryLine
Diffstat (limited to 'src/content/dependencies')
-rw-r--r--src/content/dependencies/generateFlashInfoPage.js15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/content/dependencies/generateFlashInfoPage.js b/src/content/dependencies/generateFlashInfoPage.js
index 7f047cad..a7c23eae 100644
--- a/src/content/dependencies/generateFlashInfoPage.js
+++ b/src/content/dependencies/generateFlashInfoPage.js
@@ -12,6 +12,7 @@ export default {
     'generateFlashArtworkColumn',
     'generateFlashNavAccent',
     'generatePageLayout',
+    'generateReadCommentaryLine',
     'generateTrackList',
     'linkExternal',
     'linkFlashAct',
@@ -61,6 +62,9 @@ export default {
     commentaryContentHeading:
       relation('generateCommentaryContentHeading', flash),
 
+    readCommentaryLine:
+      relation('generateReadCommentaryLine', flash),
+
     flashActLink:
       relation('linkFlashAct', flash.act),
 
@@ -131,14 +135,9 @@ export default {
             {[html.joinChildren]: html.tag('br')},
 
             language.encapsulate('releaseInfo', capsule => [
-              !html.isBlank(relations.artistCommentaryEntries) &&
-                language.encapsulate(capsule, 'readCommentary', capsule =>
-                  language.$(capsule, {
-                    link:
-                      html.tag('a',
-                        {href: '#artist-commentary'},
-                        language.$(capsule, 'link')),
-                  })),
+              (!html.isBlank(relations.contributorContributionList) ||
+               !html.isBlank(relations.featuredTracksList)) &&
+                relations.readCommentaryLine,
 
               !html.isBlank(relations.creditSourceEntries) &&
                 language.encapsulate(capsule, 'readCreditingSources', capsule =>