« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/page
diff options
context:
space:
mode:
Diffstat (limited to 'src/page')
-rw-r--r--src/page/album.js4
-rw-r--r--src/page/flash.js9
2 files changed, 4 insertions, 9 deletions
diff --git a/src/page/album.js b/src/page/album.js
index 1cceead9..a92d9a06 100644
--- a/src/page/album.js
+++ b/src/page/album.js
@@ -219,9 +219,7 @@ export function write(album, {wikiData}) {
               },
               [
                 hasAdditionalFiles &&
-                  generateAdditionalFilesShortcut(album.additionalFiles, {
-                    language,
-                  }),
+                  generateAdditionalFilesShortcut(album.additionalFiles),
 
                 hasCommentaryEntries &&
                   language.$('releaseInfo.viewCommentary', {
diff --git a/src/page/flash.js b/src/page/flash.js
index c123c1be..6def3050 100644
--- a/src/page/flash.js
+++ b/src/page/flash.js
@@ -72,13 +72,10 @@ export function write(flash, {wikiData}) {
                 html.tag('li',
                   language.$('trackList.item.withArtists', {
                     track: link.track(track),
-                    by: `<span class="by">${
+                    by: html.tag('span', {class: 'by'},
                       language.$('trackList.item.withArtists.by', {
-                        artists: getArtistString(
-                          track.artistContribs
-                        ),
-                      })
-                    }</span>`,
+                        artists: getArtistString(track.artistContribs),
+                      })),
                   })))),
           ] : [],