]> git.sesse.net Git - ccbs/blobdiff - html/templates/show-tournament.tmpl
Added a simple flag in ccbs.pm to make the system suitable for public viewing (ie...
[ccbs] / html / templates / show-tournament.tmpl
index ee2be73e69f0e8a4ff3e5a573296fcabd1bcecca..8619ca96c88a11bc98661cb2020ae704d5017690 100644 (file)
@@ -12,7 +12,7 @@
     </ul>
   </div>
 
-[% IF closing_valid %]
+[% IF closing_valid && !public %]
   <h2>Start ny runde</h2>
 
   <div>
@@ -54,7 +54,7 @@
   </div>
 [% END %]
   
-[% IF finishing_valid %]
+[% IF finishing_valid && !public %]
   <h2>Avslutt turnering</h2>
 
   <div>
 [% END %]
 
 [% FOR r = rounds %]
-  <h2>Runde [% r.round %]</h2>
+[% IF r.locked || !public %]
+  <h2><a name="round[% r.round %]">Runde [% r.round %]</a></h2>
 
   <div>
 
   [% FOR p = r.parallels %]
+    [% IF bigscreen %]
+  <form method="post" action="do-set-active-round.pl">
+    <p>
+      <input type="hidden" name="tournament" value="[% tournament.tournament %]" />
+      <input type="hidden" name="round" value="[% r.round %]" />
+      <input type="hidden" name="parallel" value="[% p.parallel %]" />
+      [% IF p.bigscreen %]
+      <input type="hidden" name="show" value="false" />
+      <input type="submit" value="Fjern fra storskjerm" />
+      [% ELSE %]
+      <input type="hidden" name="show" value="true" />
+      <input type="submit" value="Vis på storskjerm" />
+      Antall maskiner: <input name="nummachines" value="1" size="1" />
+      Antall spillere samtidig på hver maskin: <input name="playerspermachine" value="1" size="1" />
+      [% END %]
+    </p>
+  </form>
+    [% END %]
+  
   <form method="post" action="do-edit-scores.pl">
   <table class="scores">
     <tr>
 
   </div>
 [% END %]
+[% END %]