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 { } - {}} + {}} - @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{@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@}{ -