« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--upd8.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/upd8.js b/upd8.js
index 7bb60348..173fcc77 100644
--- a/upd8.js
+++ b/upd8.js
@@ -2452,6 +2452,7 @@ function generateSidebarForAlbum(album, currentTrack = null) {
                         ${track.group && fixWS`
                             <dt style="${getThemeString(track)}" ${classes(currentTrack && track.group === currentTrack.group && 'current')}>
                                 <a href="${C.TRACK_DIRECTORY}/${track.directory}/index.html">${track.group}</a>
+                                ${listTag === 'ol' ? `(${i + 1}&ndash;${arr.length - arr.slice().reverse().findIndex(t => t.group === track.group)})` : `<!-- (here: track number range) -->`}
                             </dt>
                         `}
                         <dd style="${getThemeString(track)}"><${listTag === 'ol' ? `ol start="${i + 1}"` : listTag}>