« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/content/dependencies/generateTrackInfoPage.js8
-rw-r--r--src/strings-default.yaml3
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}"