X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/0d0253c93a64d2b5206e902c648e1e2c6bc5d510..0e2b222fc14b8f890fab644118cf0f43abbe450a:/templates/macros.tmpl diff --git a/templates/macros.tmpl b/templates/macros.tmpl index 1a6554d..495c29a 100644 --- a/templates/macros.tmpl +++ b/templates/macros.tmpl @@ -36,30 +36,27 @@ and then redefines macros as desired. @# @name is the name of this page, for the element @define {stdhead} {name} {@quiethead -<link rel=stylesheet - type="text/css" - href="@label{url.static}/disorder.css"> <title>@label{@name.title}} @# Non-displaying text @define {quiethead} {} - {} + { } @# Standard menu @# @current is the name of the current page, e.g. choosealpha, login @define {stdmenu} {current} - { -
+

+
} @# Menu entry @@ -71,16 +68,15 @@ and then redefines macros as desired. @# @define {menuitem} {current name available} {@if{@available} - { } - { - @label{menu.@name}}} + { @label{menu.@name}} + { @label{menu.@name}}} @# Standard footer text @@ -114,10 +110,10 @@ and then redefines macros as desired. @define {martist} {what track} {@right{play} {@part{@track}{short}{artist}} + href="@url?action=choose&dir=@urlquote{@dirname{@dirname{@track}}}" + title="@label{playing.artistverbose}">@part{@track}{artist}{short}} {@part{@track}{short}{artist}}} + title="@part{@track}{artist}">@part{@track}{artist}{short}}} @# Expand to the album for @track @# @what is the section @@ -125,16 +121,22 @@ and then redefines macros as desired. @define {malbum} {what track} {@right{play} {@part{@track}{short}{album}} + href="@url?action=choose&dir=@urlquote{@dirname{@track}}" + title="@label{playing.albumverbose}">@part{@track}{album}{short}} {@part{@track}{short}{album}}} + title="@part{@track}{album}">@part{@track}{album}{short}}} @# Expand to the title for @track @# @what is the section @# @track is the track name @define {mtitle} {what track} - {@part{@track}{short}{title}} + {@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 @@ -171,3 +173,12 @@ and then redefines macros as desired. width=@width height=@height title="@label{playing.@q{@dir}verbose}" alt="@label{playing.@dir}">}} + +Local variables: +mode:sgml +sgml-always-quote-attributes:nil +sgml-indent-step:1 +sgml-indent-data:t +indent-tabs-mode:nil +fill-column:79 +End: