X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/1a3dba678a4edf1df3d7de2cc29f8e32d6fea080..f9b20469107a0d4b6f707cbbdd9a17a7e2c4bf82:/templates/playing.tmpl diff --git a/templates/playing.tmpl b/templates/playing.tmpl index ba8af01..147333c 100644 --- a/templates/playing.tmpl +++ b/templates/playing.tmpl @@ -25,11 +25,9 @@ USA @# @action should be the action to switch to the opposite state @# @state should be the current state @define {onoff} {class action state} - { - @label{playing.@class} - + {@actbutton{@label{playing.@class}} + {@label{playing.@q{@action}verbose}} + {@action} } @@ -41,22 +39,33 @@ USA { @label{volume.@dir} } - {}} + {}} - @include{macros.tmpl} + @# Expand to @yes for the Manage page and @no for the playing page + @define {ifmanage} {yes no} + {@if {@eq {@arg{action}}{manage}} + {@yes} + {@no}} + + @ifmanage{ + @define {back} {} {&back=manage} + @define {formback} {} {} + }{} }@# -@include{stdhead.tmpl}@# +@quiethead @if{@isplaying} {@playing{@part{@id}{title}}} {@label{playing.title}} -@include{topbar.tmpl} +@stdmenu{@ifmanage{manage}{playing}}

@label{playing.title}

@# Extra control buttons for the management page @@ -64,8 +73,8 @@ USA

@if{@paused} - {@onoff{class}{resume}{enabled}} - {@onoff{class}{pause}{disabled}} + {@onoff{pause}{resume}{enabled}} + {@onoff{pause}{pause}{disabled}} @if{@random-enabled} {@onoff{random}{randomdisable}{enabled}} {@onoff{random}{randomenable}{disabled}} @@ -82,11 +91,9 @@ USA @label{volume.right} - + @right{volume}{ - + @submit{@label{volume.set}} } @vbutton{down}{-} @@ -136,32 +143,32 @@ USA }{} } - @if{@isqueue@}{ - - @label{playing.next} - + @if{@isqueue}{ + + @label{playing.next} + } @queue{ - - @mwhen{queue}{@id} - @mwho{queue}{@id} - @martist{queue}{@track} - @malbum{queue}{@track} - @mtitle{queue}{@track} - @length - @mremove{queue}{@id} - @ifmanage{ - @mmove{@id}{upall}{2147483647} - @mmove{@id}{up}{1} - @mmove{@id}{down}{-1} - @mmove{@id}{downall}{-2147483647} - } - - } + + @mwhen{queue}{@id} + @mwho{queue}{@id} + @martist{queue}{@track} + @malbum{queue}{@track} + @mtitle{queue}{@track} + @length{@id} + @mremove{queue}{@id} + @ifmanage{ + @mmove{@id}{upall}{2147483647} + @mmove{@id}{up}{1} + @mmove{@id}{down}{-1} + @mmove{@id}{downall}{-2147483647} + }{} + + } } -@include{topbarend.tmpl}@# +@credits @discard{ @@ -170,5 +177,6 @@ mode:sgml sgml-always-quote-attributes:nil sgml-indent-step:1 sgml-indent-data:t +indent-tabs-mode:nil End: -}@ +}@#