chiark / gitweb /
more template fiddling
authorRichard Kettlewell <rjk@greenend.org.uk>
Sat, 17 May 2008 12:10:12 +0000 (13:10 +0100)
committerRichard Kettlewell <rjk@greenend.org.uk>
Sat, 17 May 2008 12:10:12 +0000 (13:10 +0100)
templates/choose.tmpl

index 6277c12..a000cad 100644 (file)
@@ -104,10 +104,33 @@ USA
    @if{@ne{@arg{query}}{}}
       {
 @# There's a search query
-        @search{@arg{query}}{
-          <p>TODO @quote{@track}</p>
-        }
-      }
+  <table class=search>
+    <tr class=headings>
+     <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>
+    @search{@arg{query}}{
+    <tr class=@parity>
+     <td class=artist>@martist{search}{@track}</td>
+     <td class=album>@malbum{search}{@track}</td>
+     <td class=title>@mtitle{search}{@track}</td>
+     <td class=length>@length{@id}</td>
+     @right{prefs}{
+     <td class=imgbutton>
+      <a class=imgbutton
+         href="@url?action=prefs&#38;0_file=@urlquote{@track}">
+       <img class=button src="@image{edit}"
+            title="@label{choose.prefsverbose}"
+            alt="@label{choose.prefs}">
+      </a>
+     </td>
+    </tr>}
+    }
+  </table>}
       {
 @# No search query