X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/d22b8a59995829bc14b4490b9bddd95346e0585d..05b75f8d50b83e943af3be4071449304d82dbdcd:/templates/macros.tmpl diff --git a/templates/macros.tmpl b/templates/macros.tmpl index 495c29a..1bfd97f 100644 --- a/templates/macros.tmpl +++ b/templates/macros.tmpl @@ -52,6 +52,7 @@ and then redefines macros as desired. @menuitem{@current}{recent}{true} @menuitem{@current}{choose}{@right{play}} @menuitem{@current}{manage}{true} +@menuitem{@current}{new}{true} @menuitem{@current}{login}{true} @menuitem{@current}{help}{true} @menuitem{@current}{about}{true} @@ -69,8 +70,8 @@ and then redefines macros as desired. @define {menuitem} {current name available} {@if{@available} { @part{@track}{title}{short}} + {@part{@track}{title}{short}} @# Expand to the remove/scratch entry for @id @# @what is the section @@ -174,6 +175,75 @@ and then redefines macros as desired. title="@label{playing.@q{@dir}verbose}" alt="@label{playing.@dir}">}} +@# Size of input box for preferences forms +@define{prefsize}{}{40} + +@# Expand to the weight of a track. This macro knows the default weight, +@# and does two lookups, which is rather inelegant. +@# @track is the track name. +@define{weight}{track}{@if{@eq{@pref{@track}{weight}}{}} + {90000} + {@pref{@track}{weight}}} + +@# Expand to preference form section for a track +@# @index is the track number +@# @track is the track name +@define {mprefs} {index track} + { +

Preferences for @quote{@resolve{@track}}:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
@label{prefs.name}@label{prefs.value}
@label{heading.title} + +
@label{heading.album} + +
@label{heading.artist} + +
@label{prefs.tags} + +
@label{prefs.weight} + +
@label{prefs.random} + +
+} + Local variables: mode:sgml sgml-always-quote-attributes:nil