]> git.sesse.net Git - ccbs/commitdiff
Indented the show-tournament template.
authorSteinar H. Gunderson <sesse@samfundet.no>
Mon, 14 Feb 2005 23:34:29 +0000 (23:34 +0000)
committerSteinar H. Gunderson <sesse@samfundet.no>
Mon, 14 Feb 2005 23:34:29 +0000 (23:34 +0000)
html/templates/show-tournament.tmpl

index 9d867e7960a55a4ab9f656866923e5e04e10e8d9..9dc1083a09b95aa3a0b4234d85ca8c1d857cb9a0 100644 (file)
 
   <div>
 
 
   <div>
 
-[% FOR p = r.parallels %]
+  [% FOR p = r.parallels %]
   <table class="scores">
     <tr>
   <table class="scores">
     <tr>
-[% IF p.parallel == 0 %]
+    [% IF p.parallel == 0 %]
       <th></th>
       <th></th>
-[% ELSE %]
+    [% ELSE %]
       <th>Gruppe [% p.parallel %]</th>
       <th>Gruppe [% p.parallel %]</th>
-[% END %]
-[% FOR s = p.songs %]
-[% IF s == '' %]
+    [% END %]
+    [% FOR s = p.songs %]
+      [% IF s == '' %]
       <th colspan="2">Selvvalgt</th>
       <th colspan="2">Selvvalgt</th>
-[% ELSE %]
+      [% ELSE %]
       <th>[% s %]</th>
       <th>[% s %]</th>
-[% END %]
-[% END %]
-[% IF p.num_songs > 1 %]
+      [% END %]
+    [% END %]
+    [% IF p.num_songs > 1 %]
       <th>Total</th>
       <th>Total</th>
-[% END %]      
+    [% END %]      
       <th></th>
     </tr>
     
       <th></th>
     </tr>
     
-[% FOR pl = p.players %]
-[% IF pl.locked %]
+    [% FOR pl = p.players %]
+      [% IF pl.locked %]
     <tr>
       <th>[% pl.nick %]</th>
     <tr>
       <th>[% pl.nick %]</th>
-[% FOR s = pl.songs %]
+        [% FOR s = pl.songs %]
       <td>[% s.score %]</td>
       <td>[% s.score %]</td>
-[% IF s.chosen %]
+          [% IF s.chosen %]
       <td>[% s.title %]</td>
       <td>[% s.title %]</td>
-[% END %]
-[% END %]
-[% IF p.num_songs > 1 %]
+          [% END %]
+        [% END %]
+        [% IF p.num_songs > 1 %]
      <td>[% pl.total %]</td>
      <td>[% pl.total %]</td>
-[% END %]      
+        [% END %]      
     </tr>
     </tr>
-[% ELSE %]
+      [% ELSE %]
     <tr>
       <th>[% pl.nick %]</th>
     <tr>
       <th>[% pl.nick %]</th>
-[% FOR s = pl.songs %]
+        [% FOR s = pl.songs %]
       <td><input name="score[% s.songnumber %]" value="[% s.score %]" size="5" /></td>
       <td><input name="score[% s.songnumber %]" value="[% s.score %]" size="5" /></td>
-[% IF s.chosen %]
+          [% IF s.chosen %]
       <td>
         <select name="song[% s.songnumber %]">
           <option value=""> </option>
       <td>
         <select name="song[% s.songnumber %]">
           <option value=""> </option>
-[% FOR ss = songs %]
-[% IF s.song == ss.song %]
+            [% FOR ss = songs %]
+              [% IF s.song == ss.song %]
           <option value="[% ss.song %]" selected="selected">[% ss.title %]</option>
           <option value="[% ss.song %]" selected="selected">[% ss.title %]</option>
-[% ELSE %]       
+              [% ELSE %]         
           <option value="[% ss.song %]">[% ss.title %]</option>
           <option value="[% ss.song %]">[% ss.title %]</option>
-[% END %]        
-[% END %]
+              [% END %]          
+            [% END %]
         </select>
       </td>
         </select>
       </td>
-[% END %]
-[% END %]
-[% IF p.num_songs > 1 %]
+          [% END %]
+        [% END %]
+        [% IF p.num_songs > 1 %]
      <td>[% pl.total %]</td>
      <td>[% pl.total %]</td>
-[% END %]
+        [% END %]
      <td><input type="submit" value="Oppdater" /></td>
     </tr>
      <td><input type="submit" value="Oppdater" /></td>
     </tr>
-
-[% END %]
-[% END %]
+      [% END %]
+    [% END %]
   </table>
   </table>
-[% END %]
+  [% END %]
 
   </div>
 [% END %]
 
   </div>
 [% END %]