X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/99955407d05eb81a81b410cd4b6d182f64e1ff57..d22b8a59995829bc14b4490b9bddd95346e0585d:/templates/macros.tmpl diff --git a/templates/macros.tmpl b/templates/macros.tmpl index c3b7ed8..495c29a 100644 --- a/templates/macros.tmpl +++ b/templates/macros.tmpl @@ -110,8 +110,8 @@ and then redefines macros as desired. @define {martist} {what track} {@right{play} {@part{@track}{artist}{short}} + href="@url?action=choose&dir=@urlquote{@dirname{@dirname{@track}}}" + title="@label{playing.artistverbose}">@part{@track}{artist}{short}} {@part{@track}{artist}{short}}} @@ -121,8 +121,8 @@ and then redefines macros as desired. @define {malbum} {what track} {@right{play} {@part{@track}{album}{short}} + href="@url?action=choose&dir=@urlquote{@dirname{@track}}" + title="@label{playing.albumverbose}">@part{@track}{album}{short}} {@part{@track}{album}{short}}} @@ -132,6 +132,12 @@ and then redefines macros as desired. @define {mtitle} {what track} {@part{@track}{title}{short}} +@# As @mtitle but make a link to play the track +@# @what is the section +@# @track is the track name +@define {mtitleplay} {what track} + {@part{@track}{title}{short}} + @# Expand to the remove/scratch entry for @id @# @what is the section @# @id is the track ID