diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2025-08-23 15:23:31 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2025-08-23 15:23:31 -0300 |
commit | 1efbd6a6fe303e8c6f106053d12fc21b1e8d7b52 (patch) | |
tree | 9ac810b06eb1d843a503f7d950bf85d9c1393417 | |
parent | 71df79dd12516b97a5ccaa8dc82c139c1747138a (diff) |
content: generateTrackInfoPage: needs lyrics line
-rw-r--r-- | src/content/dependencies/generateTrackInfoPage.js | 8 | ||||
-rw-r--r-- | src/strings-default.yaml | 3 |
2 files changed, 11 insertions, 0 deletions
diff --git a/src/content/dependencies/generateTrackInfoPage.js b/src/content/dependencies/generateTrackInfoPage.js index 2c082cc4..efd0ec9f 100644 --- a/src/content/dependencies/generateTrackInfoPage.js +++ b/src/content/dependencies/generateTrackInfoPage.js @@ -149,6 +149,9 @@ export default { dateAlbumAddedToWiki: track.album.dateAddedToWiki, + needsLyrics: + track.needsLyrics, + singleTrackSingle: query.singleTrackSingle, @@ -370,6 +373,11 @@ export default { !html.isBlank(relations.referencingSourceEntries)) && html.tag('hr', {class: 'main-separator'}), + data.needsLyrics && + html.isBlank(relations.lyricsSection) && + html.tag('p', + language.$(pageCapsule, 'needsLyrics')), + relations.lyricsSection, html.tags([ diff --git a/src/strings-default.yaml b/src/strings-default.yaml index 93881aa2..3e07382f 100644 --- a/src/strings-default.yaml +++ b/src/strings-default.yaml @@ -2555,6 +2555,9 @@ trackPage: wiki: "across this wiki" album: "within this album" + needsLyrics: >- + This track has vocals, but there aren't lyrics available for it on this wiki, yet! + socialEmbed: heading: "{ALBUM}" title: "{TRACK}" |