chiark / gitweb /
Half way through rewriting web interface. Don't even think about
[disorder] / templates / choose.tmpl
... / ...
CommitLineData
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
2<!--
3This file is part of DisOrder.
4Copyright (C) 2004-2008 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>
27@include{topbar}@
28 <h1>@label:choose.title@</h1>
29
30 @#{always have the first-letter bar, if choosealpha enabled}@
31 @if{@eq{@label:sidebar.choosewhich@}{choosealpha}@}{
32
33 <p class=choosealpha>
34 <a title="Directories starting with 'a'"
35 href="@url@?action=choose&#38;regexp=^(the )?a">A</a> |
36 <a title="Directories starting with 'b'"
37 href="@url@?action=choose&#38;regexp=^(the )?b">B</a> |
38 <a title="Directories starting with 'c'"
39 href="@url@?action=choose&#38;regexp=^(the )?c">C</a> |
40 <a title="Directories starting with 'd'"
41 href="@url@?action=choose&#38;regexp=^(the )?d">D</a> |
42 <a title="Directories starting with 'e'"
43 href="@url@?action=choose&#38;regexp=^(the )?e">E</a> |
44 <a title="Directories starting with 'f'"
45 href="@url@?action=choose&#38;regexp=^(the )?f">F</a> |
46 <a title="Directories starting with 'g'"
47 href="@url@?action=choose&#38;regexp=^(the )?g">G</a> |
48 <a title="Directories starting with 'h'"
49 href="@url@?action=choose&#38;regexp=^(the )?h">H</a> |
50 <a title="Directories starting with 'i'"
51 href="@url@?action=choose&#38;regexp=^(the )?i">I</a> |
52 <a title="Directories starting with 'j'"
53 href="@url@?action=choose&#38;regexp=^(the )?j">J</a> |
54 <a title="Directories starting with 'k'"
55 href="@url@?action=choose&#38;regexp=^(the )?k">K</a> |
56 <a title="Directories starting with 'l'"
57 href="@url@?action=choose&#38;regexp=^(the )?l">L</a> |
58 <a title="Directories starting with 'm'"
59 href="@url@?action=choose&#38;regexp=^(the )?m">M</a> |
60 <a title="Directories starting with 'n'"
61 href="@url@?action=choose&#38;regexp=^(the )?n">N</a> |
62 <a title="Directories starting with 'o'"
63 href="@url@?action=choose&#38;regexp=^(the )?o">O</a> |
64 <a title="Directories starting with 'p'"
65 href="@url@?action=choose&#38;regexp=^(the )?p">P</a> |
66 <a title="Directories starting with 'q'"
67 href="@url@?action=choose&#38;regexp=^(the )?q">Q</a> |
68 <a title="Directories starting with 'r'"
69 href="@url@?action=choose&#38;regexp=^(the )?r">R</a> |
70 <a title="Directories starting with 's'"
71 href="@url@?action=choose&#38;regexp=^(the )?s">S</a> |
72 <a title="Directories starting with 't'"
73 href="@url@?action=choose&#38;regexp=^(?!the [^t])t">T</a> |
74 <a title="Directories starting with 'u'"
75 href="@url@?action=choose&#38;regexp=^(the )?u">U</a> |
76 <a title="Directories starting with 'v'"
77 href="@url@?action=choose&#38;regexp=^(the )?v">V</a> |
78 <a title="Directories starting with 'w'"
79 href="@url@?action=choose&#38;regexp=^(the )?w">W</a> |
80 <a title="Directories starting with 'x'"
81 href="@url@?action=choose&#38;regexp=^(the )?x">X</a> |
82 <a title="Directories starting with 'y'"
83 href="@url@?action=choose&#38;regexp=^(the )?y">Y</a> |
84 <a title="Directories starting with 'z'"
85 href="@url@?action=choose&#38;regexp=^(the )?z">Z</a> |
86 <a title="Directories starting with anything else"
87 href="@url@?action=choose&#38;regexp=^[^a-z]">*</a>
88 </p>
89 }@
90
91 @if{@ne{@arg:directory@}{}@}{
92 <p class=directoryname>@navigate{@arg:directory@}{/<a
93 href="@url@?action=choose&#38;directory=@urlquote{@fullname@}@">@basename@</a>}@:</p>
94 }@
95
96 @if{@isdirectories@}{
97 <div class=directories><div class=filesdirectories>
98 <p class=heading>
99 @label:choose.directories@
100 </p>
101 @choose{directories}{
102 <p class=entry>
103 <a
104 href="@url@?action=choose&#38;directory=@urlquote{@file@}@"
105 title="@label:choose.directory@">
106 <img class=button
107 src="@image:directory@"
108 alt="">
109 @transform{@file@}{dir}{display}@
110 </a>
111 </p>
112 }@
113 </div></div>
114 }@
115 @if{@isfiles@}{
116 <div class=files><div class=filesdirectories>
117 <p class=heading>
118 @label:choose.files@
119 </p>
120 @choose{files}{
121 <p class=entry>
122 @right{prefs}{<a class=imgprefs
123 href="@url@?action=prefs&#38;0_file=@urlquote{@resolve{@file@}@}@"
124 ><img class=button
125 src="@image:edit@"
126 title="@label:choose.prefsverbose@"
127 alt="@label:choose.prefs@"></a>}@
128 <a
129 href="@url@?action=play&#38;file=@urlquote{@file@}@&#38;back=@urlquote{@thisurl@}@"
130 title="@label:choose.play@">@transform{@file@}{track}{display}@</a>
131 @if{@eq{@trackstate{@file@}@}{playing}@}{[<b>playing</b>]}@
132 @if{@eq{@trackstate{@file@}@}{queued}@}{[<b>queued</b>]}@
133 </p>
134 }@
135 <p class=all>
136 @right{prefs}{<a class=imgprefs
137 href="@url@?action=prefs&#38;directory=@urlquote{@arg:directory@}@&#38;back=@urlquote{@thisurl@}@"
138 ><img class=button
139 src="@image:edit@"
140 title="@label:choose.allprefsverbose@"
141 alt="@label:choose.allprefs@"></a>}@
142 <a class=button href="@url@?action=play&#38;directory=@urlquote{@arg:directory@}@&#38;back=@urlquote{@thisurl@}@">
143 @label:choose.playall@
144 </a>
145 </p>
146 </div></div>
147 }@
148
149@include{topbarend}@
150 </body>
151</html>
152@@
153<!--
154Local variables:
155mode:sgml
156sgml-always-quote-attributes:nil
157sgml-indent-step:1
158sgml-indent-data:t
159End:
160-->