1 @include{macros.tmpl}@#
2 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
4 This file is part of DisOrder.
5 Copyright (C) 2004-2008 Richard Kettlewell
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
12 This program is distributed in the hope that it will be useful, but
13 WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
24 @include{stdhead.tmpl}
25 <title>@if{@isplaying}
26 {@part{@playing}{title}@label{playing.title}}</title>
30 <h1>@label{playing.title}</h1>
32 @# Extra control buttons for the management page
39 href="@url?action=resume&mgmt=true"
40 title="@label{playing.resumeverbose}">@label{playing.pause}</a>
42 <img width=16 height=16 class=imgbutton src="@image{enabled}">
46 href="@url?action=pause&mgmt=true"
47 title="@label{playing.pauseverbose}">@label{playing.pause}</a>
49 <img width=16 height=16 class=imgbutton src="@image{disabled}">
52 @# Random play enabled
54 href="@url?action=random-disable&mgmt=true"
55 title="@label{playing.randomdisableverbose}">@label{playing.random}</a>
57 <img width=16 height=16 class=imgbutton src="@image{enabled}">
59 @# Random play disabled
61 href="@url?action=random-enable&mgmt=true"
62 title="@label{playing.randomenableverbose}">@label{playing.random}</a>
64 <img width=16 height=16 class=imgbutton src="@image{disabled}">
69 href="@url?action=disable&mgmt=true"
70 title="@label{playing.disableverbose}">@label{playing.playing}</a>
72 <img width=16 height=16 class=imgbutton src="@image{enabled}">
76 href="@url?action=enable&mgmt=true"
77 title="@label{playing.enableverbose}">@label{playing.playing}</a>
79 <img width=16 height=16 class=imgbutton src="@image{disabled}">
82 <form class=volume action="@url" method=POST
83 enctype="multipart/form-data" accept-charset=utf-8>
85 @label{playing.volume}
89 href="@url?action=volume&delta=-@label{volume.resolution}&back=manage">
90 <img class=button src="@image{down}"
91 alt="@label{volume.reduce}"
92 title="@label{volume.reduceverbose}">
95 <img class=button src="@image{nodown}">
97 @# Volume value widgets
98 @label{volume.left} <input size=3 name=left type=text value="@volume:left@">
99 @label{volume.right} <input size=3 name=right type=text value="@volume:right@">
100 <input name=back type=hidden value="@thisurl@?mgmt=true">
103 <button class=search name=submit type=submit>
105 </button><input name=action type=hidden value=volume>
107 @# Volume down button
110 href="@url?action=volume&delta=@label{volume.resolution}&back=manage">
113 alt="@label{volume.increase}"
114 title="@label{volume.increaseverbose}">
117 <img class=button src="@image{noup}">
125 @# Only display the table if there is something to put in it
126 @if{@or{@isplaying}{@isqueue}}{
127 <table class=playing>
129 <th class=when>@label{heading.when}</th>
130 <th class=who>@label{heading.who}</th>
131 <th class=artist>@label{heading.artist}</th>
132 <th class=album>@label{heading.album}</th>
133 <th class=title>@label{heading.title}</th>
134 <th class=length>@label{heading.length}</th>
135 <th class=button> </th>
137 <th class=imgbutton> </th>
138 <th class=imgbutton> </th>
139 <th class=imgbutton> </th>
140 <th class=imgbutton> </th>
144 <tr class=nowplaying>
145 <td colspan=@if{@arg{mgmt}}{11}{7}@>@label{playing.now}</td>
149 <td class=when>@when@</td>
150 <td class=who>@if{@eq{@who@}{}@}{@if{@eq{@state@}{random}@}{@label{playing.randomtrack}}{ }@}{@who@}@</td>
151 <td class=artist>@right{play}{<a class=directory
152 href="@url?action=choose&directory=@urlquote{@dirname{@dirname{@part:path@}@}@}@"
153 title="@label{playing.artistverbose}"
154 >@part{short}{artist}@</a>}{<span class=directory
155 title="@part{artist}@"
156 >@part{short}{artist}@</span>}@</td>
157 <td class=album>@right{play}{<a class=directory
158 href="@url?action=choose&directory=@urlquote{@dirname{@part:path@}@}@"
159 title="@label{playing.albumverbose}"
160 >@part{short}{album}@</a>}{<span class=directory
161 title="@part{album}@"
162 >@part{short}{album}@</span>}@</td>
163 <td class=title><span
164 title="@part{title}@">@part{short}{title}@</span></td>
165 <td class=length>@length@</td>
166 <td class=imgbutton>@if{@scratchable@}{<a class=imgbutton
167 href="@url?action=scratch&id=@id@&mgmt=@arg{mgmt}"><img
168 class=button src="@image{scratch}"
169 title="@label{playing.scratchverbose}"
170 alt="@label{playing.scratch}"></a>}{<img
171 class=button src="@image{noscratch}"
172 title="@label{playing.scratchverbose}"
173 alt="@label{playing.scratch}">}@</td>
175 <td class=imgbutton> </td>
176 <td class=imgbutton> </td>
177 <td class=imgbutton> </td>
178 <td class=imgbutton> </td>
184 <td colspan=@if{@arg{mgmt}}{11}{7}@>@label{playing.next}</td>
188 <td class=when>@when@</td>
189 <td class=who>@if{@eq{@who@}{}@}{@if{@eq{@state@}{random}@}{@label{queue.randomtrack}}{ }@}{@who@}@</td>
190 <td class=artist>@right{play}{<a class=directory
191 title="@part{artist}@"
192 href="@url?action=choose&directory=@urlquote{@dirname{@dirname{@part:path@}@}@}@"
193 >@part{short}{artist}@</a>}{<span class=directory
194 title="@part{artist}@"
195 >@part{short}{artist}@</span>}@</td>
196 <td class=album>@right{play}{<a class=directory
197 title="@part{album}@"
198 href="@url?action=choose&directory=@urlquote{@dirname{@part:path@}@}@"
199 >@part{short}{album}@</a>}{<span class=directory
200 title="@part{album}@"
201 >@part{short}{album}@}@</td>
202 <td class=title><span
203 title="@part{title}@">@part{short}{title}@</span></td>
204 <td class=length>@length@</td>
205 <td class=imgbutton>@if{@removable@}{<a class=imgbutton
206 href="@url?action=remove&id=@id@&mgmt=@arg{mgmt}"><img
207 class=button src="@image{scratch}"
208 title="@label{playing.removeverbose}"
209 alt="@label{playing.remove}"></a>}{<img
210 class=button src="@image{noscratch}"
211 title="@label{playing.removeverbose}"
212 alt="@label{playing.remove}">}@</td>
216 {@not{@movable@}@}@}{
217 <!-- cannot move up -->
220 class=button src="@image{noupall}"
221 title="@label{playing.upallverbose}" alt="">
224 class=button src="@image{noup}"
225 title="@label{playing.upverbose}" alt="">
230 href="@url?action=move&id=@id@&delta=2147483647&mgmt=true"><img
231 class=button src="@image{upall}"
232 title="@label{playing.upallverbose}"
233 alt="@label{playing.upall}"></a>
236 href="@url?action=move&id=@id@&delta=1&mgmt=true"><img
237 class=button src="@image{up}"
238 title="@label{playing.upverbose}" alt="@label{playing.up}"></a>
242 {@not{@movable@}@}@}{
243 <!-- cannot move down -->
246 class=button src="@image{nodownall}"
247 title="@label{playing.downallverbose}" alt="">
250 class=button src="@image{nodown}"
251 title="@label{playing.downverbose}" alt="">
253 <!-- can move down -->
256 href="@url?action=move&id=@id@&delta=-2147483647&mgmt=true"><img
257 class=button src="@image{downall}"
258 title="@label{playing.downallverbose}"
259 alt="@label{playing.downall}"></a>
262 href="@url?action=move&id=@id@&delta=-1&mgmt=true"><img
263 class=button src="@image{down}"
264 title="@label{playing.downverbose}" alt="@label{playing.down}"></a>
280 sgml-always-quote-attributes:nil