X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/af106f2dee658f1605891b4c69ca1036946c5147..983c335710951dd573e653b4da2a7a5d71b0aa9b:/templates/playing.tmpl
diff --git a/templates/playing.tmpl b/templates/playing.tmpl
index c910120..b8c80bd 100644
--- a/templates/playing.tmpl
+++ b/templates/playing.tmpl
@@ -3,129 +3,101 @@
This file is part of DisOrder.
Copyright (C) 2004-2008 Richard Kettlewell
-This program is free software; you can redistribute it and/or modify
+This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 2 of the License, or
+the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
-This program is distributed in the hope that it will be useful, but
-WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-General Public License for more details.
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
You should have received a copy of the GNU General Public License
-along with this program; if not, write to the Free Software
-Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
-USA
+along with this program. If not, see }
+
+ @# Volume up/down buttons
+ @# @dir is the direction: up or down
+ @# @sign is the sign: + or -
+ @define {vbutton}{dir sign}
+ {@right{volume}
+ {
+
+ }
+ {
}}
+
+ @# 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}{
-@# Paused
- @label{playing.pause}
-
-
- }{
-@# Not paused
- @label{playing.pause}
-
-
- }
- @if{@random-enabled}{
-@# Random play enabled
- @label{playing.random}
-
-
- }{
-@# Random play disabled
- @label{playing.random}
-
-
- }
- @if{@enabled}{
-@# Play enabled
- @label{playing.playing}
-
-
- }{
-@# Play disabled
- @label{playing.playing}
-
-
- }
-@# Volume form
-
+ @if{@paused} + {@onoff{pause}{resume}{enabled}} + {@onoff{pause}{pause}{disabled}} + @if{@random-enabled} + {@onoff{random}{randomdisable}{enabled}} + {@onoff{random}{randomenable}{disabled}} + @if{@enabled} + {@onoff{playing}{disable}{enabled}} + {@onoff{playing}{enable}{disabled}} +
+