X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/30d855885418ebe3e7bf76fd800909cdf7bb178a..c4f9292be2820445cc4dadac30f54876e24210e3:/templates/playing.tmpl
diff --git a/templates/playing.tmpl b/templates/playing.tmpl
index bd1f635..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}
@@ -48,17 +48,25 @@ 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}} @@ -84,7 +92,7 @@ USA @label{volume.right} - + @right{volume}{