chiark / gitweb /
disobedience more robust against server restart
[disorder] / templates / choose.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
2 <!--
3 This file is part of DisOrder.
4 Copyright (C) 2004, 2005 Richard Kettlewell
5
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful, but
12 WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
19 USA
20 -->
21 <html>
22  <head>
23 @include:stdhead@
24   <title>@label:choose.title@</title>
25  </head>
26  <body>
27 @include{@label{menu}@}@
28    <h1 class=title>@label:choose.title@</h1>
29
30    @if{@ne{@arg:directory@}{}@}{
31    <p class=directoryname>@navigate{@arg:directory@}{/<a
32    class=directory
33    href="@url@?action=choose&#38;directory=@urlquote{@fullname@}@&#38;nonce=@nonce@">@basename@</a>}@:</p>
34    }@
35
36    @if{@isdirectories@}{
37    <div class=directories>
38     <p class=directories>
39      @label:choose.directories@
40     </p>
41     @choose{directories}{
42     <p class=directory>
43      <a class=directory href="@url@?action=choose&#38;directory=@urlquote{@file@}@&#38;nonce=@nonce@">
44       @transform{@file@}{dir}{display}@
45      </a>
46     </p>
47     }@
48    </div>
49    }@
50    @if{@isfiles@}{
51    <div class=files>
52     <p class=files>
53      @label:choose.files@
54     </p>
55     @choose{files}{
56     <p class=file>
57      <a class=imgprefs href="@url@?action=prefs&#38;0_file=@urlquote{@resolve{@file@}@}@&#38;nonce=@nonce@">
58       <img class=button src="@label:images.edit@"
59       title="@label:choose.prefsverbose@" alt="@label:choose.prefs@">
60      </a>
61      <a class=file href="@url@?action=play&#38;file=@urlquote{@file@}@&#38;back=@urlquote{@thisurl@}@&#38;nonce=@nonce@">
62       @transform{@file@}{track}{display}@
63      </a>
64      @if{@eq{@trackstate{@file@}@}{playing}@}{[<b>playing</b>]}@
65      @if{@eq{@trackstate{@file@}@}{queued}@}{[<b>queued</b>]}@
66     </p>
67     }@
68    </div>
69    <p class=allfiles>
70     <a class=imgprefs href="@url@?action=prefs&#38;directory=@urlquote{@arg:directory@}@&#38;nonce=@nonce@&#38;back=@urlquote{@thisurl@}@">
71       <img class=button src="@label:images.edit@"
72       title="@label:choose.allprefsverbose@" alt="@label:choose.allprefs@">
73     </a>
74     <a class=allfiles href="@url@?action=play&#38;directory=@urlquote{@arg:directory@}@&#38;nonce=@nonce@&#38;back=@urlquote{@thisurl@}@">
75      @label:choose.playall@
76     </a>
77    </p>
78    }@
79
80 @include{@label{menu}@end}@
81  </body>
82 </html>
83 @@
84 <!--
85 Local variables:
86 mode:sgml
87 sgml-always-quote-attributes:nil
88 sgml-indent-step:1
89 sgml-indent-data:t
90 End:
91 -->