« get me outta code hell

content: generateTrackInfoPage: simpler contributor list layout - 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>2024-06-12 13:36:34 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-06-12 17:32:57 -0300
commitcb8ae05e3ce23add9e3e04f152f994da762536e4 (patch)
tree34726677ad338d1a9837bd909a21ab31bef296c6 /src/content/dependencies
parent0902c43c7be3552ce2d61981a58f21791df5f45f (diff)
content: generateTrackInfoPage: simpler contributor list layout
Diffstat (limited to 'src/content/dependencies')
-rw-r--r--src/content/dependencies/generateTrackInfoPage.js16
1 files changed, 5 insertions, 11 deletions
diff --git a/src/content/dependencies/generateTrackInfoPage.js b/src/content/dependencies/generateTrackInfoPage.js
index 336cebbb..eae782bc 100644
--- a/src/content/dependencies/generateTrackInfoPage.js
+++ b/src/content/dependencies/generateTrackInfoPage.js
@@ -93,14 +93,8 @@ export default {
 
     // Section: Contributors
 
-    if (!empty(track.contributorContribs)) {
-      const contributors = sections.contributors = {};
-
-      contributors.list =
-        relation('generateContributionList', track.contributorContribs);
-    }
-
-    // Section: Referenced tracks
+    relations.contributorContributionList =
+      relation('generateContributionList', track.contributorContribs);
 
     relations.referencedTracksList =
       relation('generateTrackList', track.referencedTracks);
@@ -269,15 +263,15 @@ export default {
             relations.otherReleasesList,
           ]),
 
-          sec.contributors && [
+          html.tags([
             relations.contentHeading.clone()
               .slots({
                 attributes: {id: 'contributors'},
                 title: language.$('releaseInfo.contributors'),
               }),
 
-            sec.contributors.list,
-          ],
+            relations.contributorContributionList,
+          ]),
 
           html.tags([
             relations.contentHeading.clone()