]> git.sesse.net Git - ccbs/blobdiff - html/templates/show-tournament.tmpl
Replace the web frontend's rank calculations with the stored procedures.
[ccbs] / html / templates / show-tournament.tmpl
index ecb14175b4a045d865b934d366b143c221f102fb..291ccda9d6e9ea0fea45d853cb97beb4a4c0f5cd 100644 (file)
         [% END %]
         [% IF p.num_songs > 1 %]
      <td>[% pl.total %]</td>
-        [% END %]      
-     <td>[% pl.rank %]</td>
+        [% END %]  
+[% IF pl.best_rank == pl.worst_rank %]
+     <td>[% pl.best_rank %]
+[% ELSE %]     
+     <td>[% pl.best_rank %]-[% pl.worst_rank %]</td>
+[% END %]     
     </tr>
       [% ELSE %]
     <tr>