]> git.sesse.net Git - ccbs/blobdiff - html/templates/tournaments.tmpl
Added a simple flag in ccbs.pm to make the system suitable for public viewing (ie...
[ccbs] / html / templates / tournaments.tmpl
index f0a59066968c6e9031a6bc9fec10705602eaa811..0665786903a4928d84389b09fb6df9f30e72d3dc 100644 (file)
@@ -1,4 +1,11 @@
 [%# vim:set filetype=html: %]
+
+[% IF !public %]
+  <div>
+    <p><a href="add-tournament.pl">Legg til turnering</a></p>
+  </div>
+[% END %]
+  
 [% SET last_season = 0 %]
 [% FOR t = tournaments %]
 
   <div>
     <ul>
 [% END %]
-      <li><a href="show-tournament.pl?id=[% t.tournament %]">[% t.tournamentname %]</a></li>
+      <li>
+        <a href="show-tournament.pl?id=[% t.tournament %]">[% t.tournamentname %]</a>
+[% IF !public %]
+       (<a href="registration.pl?id=[% t.tournament %]">registrering</a>)
+[% END %]
+      </li>
 [% END %]
     </ul>
   </div>