X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/1a3dba678a4edf1df3d7de2cc29f8e32d6fea080..e7eb3a2744aa45179daea235800753d3d1955338:/templates/playing.tmpl diff --git a/templates/playing.tmpl b/templates/playing.tmpl index ba8af01..b8c80bd 100644 --- a/templates/playing.tmpl +++ b/templates/playing.tmpl @@ -3,20 +3,18 @@ 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 . --> @discard{ @@ -25,11 +23,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 +37,33 @@ USA { @label{volume.@dir} } - {}} + {}} - @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{@isplaying} {@playing{@part{@id}{title}}} {@label{playing.title}} -@include{topbar.tmpl} +@stdmenu{@ifmanage{manage}{playing}}

@label{playing.title}

@# Extra control buttons for the management page @@ -64,8 +71,8 @@ USA

@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 +89,9 @@ USA @label{volume.right} - + @right{volume}{ - + @submit{@label{volume.set}} } @vbutton{down}{-} @@ -136,32 +141,32 @@ USA }{} } - @if{@isqueue@}{ - - @label{playing.next} - + @if{@isqueue}{ + + @label{playing.next} + } @queue{ - - @mwhen{queue}{@id} - @mwho{queue}{@id} - @martist{queue}{@track} - @malbum{queue}{@track} - @mtitle{queue}{@track} - @length - @mremove{queue}{@id} - @ifmanage{ - @mmove{@id}{upall}{2147483647} - @mmove{@id}{up}{1} - @mmove{@id}{down}{-1} - @mmove{@id}{downall}{-2147483647} - } - - } + + @mwhen{queue}{@id} + @mwho{queue}{@id} + @martist{queue}{@track} + @malbum{queue}{@track} + @mtitle{queue}{@track} + @length{@id} + @mremove{queue}{@id} + @ifmanage{ + @mmove{@id}{upall}{2147483647} + @mmove{@id}{up}{1} + @mmove{@id}{down}{-1} + @mmove{@id}{downall}{-2147483647} + }{} + + } } -@include{topbarend.tmpl}@# +@credits @discard{ @@ -170,5 +175,6 @@ mode:sgml sgml-always-quote-attributes:nil sgml-indent-step:1 sgml-indent-data:t +indent-tabs-mode:nil End: -}@ +}@#