diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2024-06-12 13:36:34 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2024-06-18 22:56:08 -0300 |
commit | fb8e5c713c33bc69a6f14ded89a3bfc647db4007 (patch) | |
tree | c20c356fbc69ac5f7636ceefc7e8ebf9596842d1 /src/content/dependencies | |
parent | 447e981001f9ed606f3ccb14a66a5bb7d11fcbf3 (diff) |
content: generateTrackInfoPage: simpler contributor list layout
Diffstat (limited to 'src/content/dependencies')
-rw-r--r-- | src/content/dependencies/generateTrackInfoPage.js | 16 |
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() |