X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/1a3dba678a4edf1df3d7de2cc29f8e32d6fea080..547553359fed90562714987654ce06feb9480cc8:/templates/playing.tmpl?ds=inline
diff --git a/templates/playing.tmpl b/templates/playing.tmpl
index ba8af01..bc0200e 100644
--- a/templates/playing.tmpl
+++ b/templates/playing.tmpl
@@ -26,7 +26,7 @@ USA
@# @state should be the current state
@define {onoff} {class action state}
{
@label{playing.@class}
@@ -41,22 +41,32 @@ 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}}
+
+ @# Expand to &back=manage or to nothing
+ @define {back} {}
+ {@ifmanage{&back=manage}{}}
}@#
@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,7 +92,7 @@ USA @label{volume.right} - + @right{volume}{