diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2024-08-15 14:14:41 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2024-08-15 14:14:41 -0300 |
commit | bbfecd71976859e591d3ebef62853f4c0481484f (patch) | |
tree | 9ab9695eb974da26ffc4a054a7ca4f61a68ecf33 /src/content/dependencies/generateArtistInfoPage.js | |
parent | 53794015af7ca4022b93e6536abb3dcee5ba9ece (diff) |
content: generateArtistInfoPage: show edits for wiki separately
Diffstat (limited to 'src/content/dependencies/generateArtistInfoPage.js')
-rw-r--r-- | src/content/dependencies/generateArtistInfoPage.js | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/src/content/dependencies/generateArtistInfoPage.js b/src/content/dependencies/generateArtistInfoPage.js index f9ce7e3b..f2fdc5b6 100644 --- a/src/content/dependencies/generateArtistInfoPage.js +++ b/src/content/dependencies/generateArtistInfoPage.js @@ -40,6 +40,7 @@ export default { artist.albumBannerArtistContributions, artist.trackCoverArtistContributions, ]).flat() + .filter(({annotation}) => !annotation?.startsWith('edits for wiki')) .map(({thing}) => thing), // Banners and wallpapers don't show up in the artist gallery page, only @@ -78,7 +79,10 @@ export default { relation('generateArtistGroupContributionsInfo', query.allTracks), artworksChunkedList: - relation('generateArtistInfoPageArtworksChunkedList', artist), + relation('generateArtistInfoPageArtworksChunkedList', artist, false), + + editsForWikiArtworksChunkedList: + relation('generateArtistInfoPageArtworksChunkedList', artist, true), artworksGroupInfo: relation('generateArtistGroupContributionsInfo', query.allArtworks), @@ -181,10 +185,11 @@ export default { {href: '#tracks'}, language.$(pageCapsule, 'trackList.title')), - !html.isBlank(relations.artworksChunkedList) && - html.tag('a', - {href: '#art'}, - language.$(pageCapsule, 'artList.title')), + (!html.isBlank(relations.artworksChunkedList) || + !html.isBlank(relations.editsForWikiArtworksChunkedList)) && + html.tag('a', + {href: '#art'}, + language.$(pageCapsule, 'artList.title')), !html.isBlank(relations.flashesChunkedList) && html.tag('a', @@ -276,6 +281,17 @@ export default { countUnit: 'artworks', })), }), + + html.tags([ + html.tag('p', + {[html.onlyIfSiblings]: true}, + + language.$(pageCapsule, 'wikiEditArtworks', { + artist: data.name, + })), + + relations.editsForWikiArtworksChunkedList, + ]), ]), html.tags([ |