chiark / gitweb /
more templates plus support code changes
[disorder] / templates / new.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{new}
24  </head>
25  <body>
26 @stdmenu{new}
27   <h1>@label:new.title@</h1>
28
29 @#{only display the table if there is something to put in it}@
30 @if{@isnew@}{
31   <table class=new>
32     <tr class=headings>
33      <th class=artist>@label:heading.artist@</th>
34      <th class=album>@label:heading.album@</th>
35      <th class=title>@label:heading.title@</th>
36      <th class=length>@label:heading.length@</th>
37 @right{prefs}{
38      <th class=button>&nbsp;</th>}@
39     </tr>
40     @new{
41     <tr class=@parity@>
42      <td class=artist>@right{play}{<a class=directory
43        title="@part{artist}@"
44        href="@url@?action=choose&amp;directory=@urlquote{@dirname{@dirname{@part:path@}@}@}@"
45        >@part{short}{artist}@</a>}{<span class=directory
46        title="@part{artist}@"
47        >@part{short}{artist}@</span>}@</td>
48      <td class=album>@right{play}{<a class=directory
49        title="@part{album}@"
50        href="@url@?action=choose&amp;directory=@urlquote{@dirname{@part:path@}@}@"
51        >@part{short}{album}@</a>}{<span class=directory
52        title="@part{album}@"
53        >@part{short}{album}@</span>}@</td>
54      <td class=title>@right{play}{<a class=file
55        title="@part{title}@"
56        href="@url@?action=play&#38;file=@urlquote{@file@}@&#38;back=@urlquote{@thisurl@}@"
57        >@part{short}{title}@</a>}{<span class=file
58        title="@part{title}@"
59        >@part{short}{title}@</span>}@</td>
60      <td class=length>@length@</td>
61 @right{prefs}{
62      <td class=imgbutton><a class=imgbutton
63       href="@url@?action=prefs&#38;0_file=@urlquote{@file@}@"><img
64        class=button src="@image:edit@"
65        title="@label:choose.prefsverbose@"
66        alt="@label:choose.prefs@"></a></td>
67     </tr>}@
68     }@
69   </table>
70 }@
71
72 @credits
73  </body>
74 </html>
75 @discard{
76 Local variables:
77 mode:sgml
78 sgml-always-quote-attributes:nil
79 sgml-indent-step:1
80 sgml-indent-data:t
81 indent-tabs-mode:nil
82 fill-column:79
83 End:
84 }@#