X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/30d855885418ebe3e7bf76fd800909cdf7bb178a..d848c36fc9de36897f18dd950288b57dfa1c0ca7:/templates/playing.tmpl
diff --git a/templates/playing.tmpl b/templates/playing.tmpl
index bd1f635..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}
}
@@ -48,17 +46,26 @@ 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} {} {}
+ }{}
}@#
@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}} @@ -84,11 +91,9 @@ USA @label{volume.right} - + @right{volume}{ - + @submit{@label{volume.set}} } @vbutton{down}{-} @@ -138,32 +143,32 @@ USA }{} } - @if{@isqueue@}{ -