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