]> git.sesse.net Git - ccbs/blobdiff - html/templates/show-tournament.tmpl
Added links for all songs (no backend yet) in the tournament view.
[ccbs] / html / templates / show-tournament.tmpl
index 0c4e350899baf0926475a41d63bbfef2d4bd2665..ee2be73e69f0e8a4ff3e5a573296fcabd1bcecca 100644 (file)
       </th>
     [% END %]
     [% FOR s = p.songs %]
-      [% IF s == '' %]
+      [% IF s.song == -1 %]
       <th colspan="4">Selvvalgt</th>
       [% ELSE %]
-      <th colspan="3">[% s %]</th>
+      <th colspan="3"><a href="song.pl?id=[% s.song %]">[% s.title %]</a></th>
       [% END %]
     [% END %]
     [% IF p.num_songs > 1 %]
       <th>Total</th>
     [% END %]      
+      <th>Rank</th>
     [% IF !r.locked %]
       <th></th>
     [% END %]      
       <td class="playmode">[% s.playmode %]</td>
       <td class="difficulty">[% s.difficulty %]</td>
           [% IF s.chosen %]
-      <td>[% s.title %]</td>
+      <td><a href="song.pl?id=[% s.song %]">[% s.title %]</a></td>
           [% END %]
         [% END %]
         [% IF p.num_songs > 1 %]
      <td>[% pl.total %]</td>
         [% END %]      
+     <td>[% pl.rank %]</td>
     </tr>
       [% ELSE %]
     <tr>
         [% IF p.num_songs > 1 %]
      <td>[% pl.total %]</td>
         [% END %]
+     <td>[% pl.rank %]</td>
      <td><input type="submit" value="Oppdater" /></td>
     </tr>
       [% END %]