chiark / gitweb /
Half way through rewriting web interface. Don't even think about
[disorder] / templates / recent.tmpl
diff --git a/templates/recent.tmpl b/templates/recent.tmpl
new file mode 100644 (file)
index 0000000..787b514
--- /dev/null
@@ -0,0 +1,84 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<!--
+This file is part of DisOrder.
+Copyright (C) 2004, 2005, 2007, 2008 Richard Kettlewell
+
+This program is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program; if not, write to the Free Software
+Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
+USA
+-->
+<html>
+ <head>
+@include:stdhead@
+  <title>@label:recent.title@</title>
+ </head>
+ <body>
+@include{topbar}@
+  <h1>@label:recent.title@</h1>
+
+@#{only display the table if there is something to put in it}@
+@if{@isrecent@}{
+  <table class=recent>
+    <tr class=headings>
+     <th class=when>@label:heading.when@</th>
+     <th class=who>@label:heading.who@</th>
+     <th class=artist>@label:heading.artist@</th>
+     <th class=album>@label:heading.album@</th>
+     <th class=title>@label:heading.title@</th>
+     <th class=length>@label:heading.length@</th>
+@right{prefs}{
+     <th class=button>&nbsp;</th>}@
+    </tr>
+    @recent{
+    <tr class=@parity@>
+     <td class=when>@when@</td>
+     <td class=who>@who@</td>
+     <td class=artist>@right{play}{<a class=directory
+       title="@part{artist}@"
+       href="@url@?action=choose&amp;directory=@urlquote{@dirname{@dirname{@part:path@}@}@}@"
+       >@part{short}{artist}@</a>}{<span class=directory
+       title="@part{artist}@"
+       >@part{short}{artist}@</span>}@</td>
+     <td class=album>@right{play}{<a class=directory
+       title="@part{album}@"
+       href="@url@?action=choose&amp;directory=@urlquote{@dirname{@part:path@}@}@"
+       >@part{short}{album}@</a>}{<span class=directory
+       title="@part{album}@"
+       >@part{short}{album}@</span>}@</td>
+     <td class=title><span
+       title="@part{title}@">@part{short}{title}@</span></td>
+     <td class=length>@length@</td>
+@right{prefs}{
+     <td class=imgbutton><a class=imgbutton
+      href="@url@?action=prefs&#38;0_file=@urlquote{@file@}@"><img
+       class=button src="@image:edit@"
+       title="@label:choose.prefsverbose@"
+       alt="@label:choose.prefs@"></a></td>
+    </tr>}@
+    }@
+  </table>
+}@
+
+@include{topbarend}@
+ </body>
+</html>
+@@
+<!--
+Local variables:
+mode:sgml
+sgml-always-quote-attributes:nil
+sgml-indent-step:1
+sgml-indent-data:t
+End:
+-->