From 19ef6644cc187d750ba9fa1c05e3e891a73d3425 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Thu, 27 May 2021 12:19:03 -0300 Subject: "from (group)" accents on group album lists --- src/static/site.css | 4 +++- src/strings-default.json | 2 ++ src/upd8.js | 27 ++++++++++++++++++++------- 3 files changed, 25 insertions(+), 8 deletions(-) diff --git a/src/static/site.css b/src/static/site.css index b71f0cd..e664c0e 100644 --- a/src/static/site.css +++ b/src/static/site.css @@ -197,9 +197,11 @@ footer > :last-child { fill: var(--primary-color); } -.rerelease { +.rerelease, +.other-group-accent { opacity: 0.7; font-style: oblique; + white-space: nowrap; } .content-columns { diff --git a/src/strings-default.json b/src/strings-default.json index eac7154..dd89239 100644 --- a/src/strings-default.json +++ b/src/strings-default.json @@ -213,6 +213,8 @@ "groupInfoPage.viewAlbumGallery.link": "album gallery", "groupInfoPage.albumList.title": "Albums", "groupInfoPage.albumList.item": "({YEAR}) {ALBUM}", + "groupInfoPage.albumList.item.withAccent": "{ITEM} {ACCENT}", + "groupInfoPage.albumList.item.otherGroupAccent": "(from {GROUP})", "groupGalleryPage.title": "{GROUP} - Gallery", "groupGalleryPage.infoLine": "{TRACKS} across {ALBUMS}, totaling {TIME}.", "groupGalleryPage.anotherGroupLine": "({LINK})", diff --git a/src/upd8.js b/src/upd8.js index 5615bb1..1337d28 100755 --- a/src/upd8.js +++ b/src/upd8.js @@ -5474,6 +5474,11 @@ function writeGroupPage(group, {wikiData}) { const releasedTracks = releasedAlbums.flatMap(album => album.tracks); const totalDuration = getTotalDuration(releasedTracks); + const albumLines = group.albums.map(album => ({ + album, + otherGroup: album.groups.find(g => g !== group) + })); + const infoPage = { type: 'page', path: ['groupInfo', group.directory], @@ -5505,14 +5510,22 @@ function writeGroupPage(group, {wikiData}) { }) }

` }, -- cgit 1.3.0-6-gf8a5