chiark / gitweb /
make url.static work as described, and adjust cgi setup details
[disorder] / templates / choose.html
CommitLineData
460b9539 1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
2<!--
3This file is part of DisOrder.
4Copyright (C) 2004, 2005 Richard Kettlewell
5
6This program is free software; you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
8the Free Software Foundation; either version 2 of the License, or
9(at your option) any later version.
10
11This program is distributed in the hope that it will be useful, but
12WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with this program; if not, write to the Free Software
18Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
19USA
20-->
21<html>
22 <head>
23@include:stdhead@
24 <title>@label:choose.title@</title>
25 </head>
26 <body>
e12da4d9 27@include{topbar}@
460b9539 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
b415c101 33 href="@url@?action=choose&#38;directory=@urlquote{@fullname@}@&#38;nonce=@nonce@">@basename@</a>}@:</p>
460b9539 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>
b415c101 43 <a class=directory href="@url@?action=choose&#38;directory=@urlquote{@file@}@&#38;nonce=@nonce@">
460b9539 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>
6e261971 57 @right{prefs}{<a class=imgprefs
58 href="@url@?action=prefs&#38;0_file=@urlquote{@resolve{@file@}@}@&#38;nonce=@nonce@"
59 ><img class=button
60 src="@label:images.edit@"
61 title="@label:choose.prefsverbose@"
62 alt="@label:choose.prefs@"></a>}@
78efa64e
RK
63 <a class=file
64 href="@url@?action=play&#38;file=@urlquote{@file@}@&#38;back=@urlquote{@thisurl@}@&#38;nonce=@nonce@"
65 title="@label:choose.play@">@transform{@file@}{track}{display}@</a>
460b9539 66 @if{@eq{@trackstate{@file@}@}{playing}@}{[<b>playing</b>]}@
67 @if{@eq{@trackstate{@file@}@}{queued}@}{[<b>queued</b>]}@
68 </p>
69 }@
70 </div>
71 <p class=allfiles>
6e261971 72 @right{prefs}{<a class=imgprefs
73 href="@url@?action=prefs&#38;directory=@urlquote{@arg:directory@}@&#38;nonce=@nonce@&#38;back=@urlquote{@thisurl@}@"
74 ><img class=button
75 src="@label:images.edit@"
76 title="@label:choose.allprefsverbose@"
77 alt="@label:choose.allprefs@"></a>}@
b415c101 78 <a class=allfiles href="@url@?action=play&#38;directory=@urlquote{@arg:directory@}@&#38;nonce=@nonce@&#38;back=@urlquote{@thisurl@}@">
460b9539 79 @label:choose.playall@
80 </a>
81 </p>
82 }@
83
e12da4d9 84@include{topbarend}@
460b9539 85 </body>
86</html>
87@@
88<!--
89Local variables:
90mode:sgml
91sgml-always-quote-attributes:nil
92sgml-indent-step:1
93sgml-indent-data:t
94End:
95-->