From fb8e5c713c33bc69a6f14ded89a3bfc647db4007 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Wed, 12 Jun 2024 13:36:34 -0300 Subject: content: generateTrackInfoPage: simpler contributor list layout --- src/content/dependencies/generateTrackInfoPage.js | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) (limited to 'src/content') 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() -- cgit 1.3.0-6-gf8a5