« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies/generateTrackInfoPage.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/content/dependencies/generateTrackInfoPage.js')
-rw-r--r--src/content/dependencies/generateTrackInfoPage.js16
1 files changed, 4 insertions, 12 deletions
diff --git a/src/content/dependencies/generateTrackInfoPage.js b/src/content/dependencies/generateTrackInfoPage.js
index e02a2e3..742f390 100644
--- a/src/content/dependencies/generateTrackInfoPage.js
+++ b/src/content/dependencies/generateTrackInfoPage.js
@@ -16,6 +16,7 @@ export default {
     'generateAlbumStyleRules',
     'generateChronologyLinks',
     'generateContentHeading',
+    'generateContributionList',
     'generatePageLayout',
     'generateTrackCoverArtwork',
     'generateTrackList',
@@ -24,7 +25,6 @@ export default {
     'generateTrackSocialEmbed',
     'linkAlbum',
     'linkArtist',
-    'linkContribution',
     'linkFlash',
     'linkTrack',
     'transformContent',
@@ -149,9 +149,8 @@ export default {
       contributors.heading =
         relation('generateContentHeading');
 
-      contributors.contributionLinks =
-        track.contributorContribs
-          .map(contrib => relation('linkContribution', contrib));
+      contributors.list =
+        relation('generateContributionList', track.contributorContribs);
     }
 
     // Section: Referenced tracks
@@ -369,14 +368,7 @@ export default {
                 title: language.$('releaseInfo.contributors'),
               }),
 
-            html.tag('ul',
-              sec.contributors.contributionLinks.map(contributionLink =>
-                html.tag('li',
-                  contributionLink
-                    .slots({
-                      showIcons: true,
-                      showContribution: true,
-                    })))),
+            sec.contributors.list,
           ],
 
           sec.references && [