From: Steinar H. Gunderson Date: Mon, 14 Feb 2005 19:10:27 +0000 (+0000) Subject: Misc. changes -- some formatting and add a preliminary "start new round" form. X-Git-Url: https://git.sesse.net/?p=ccbs;a=commitdiff_plain;h=22b4ad6760e9b0a21f799fa27af0c1be0d12c029 Misc. changes -- some formatting and add a preliminary "start new round" form. --- diff --git a/html/show-tournament.pl b/html/show-tournament.pl index b204270..87df626 100755 --- a/html/show-tournament.pl +++ b/html/show-tournament.pl @@ -61,10 +61,13 @@ for my $score (@$scores) { $pl->[$#$pl]->{'total'} += $score->{'score'}; } +my $num_rounds = scalar @rounds; + ccbs::print_header(); ccbs::process_template('show-tournament.tmpl', $tournament->{'tournamentname'}, { tournament => $tournament, rankings => $rankings, - rounds => \@rounds + rounds => \@rounds, + num_rounds => $num_rounds }); $dbh->disconnect; diff --git a/html/templates/show-tournament.tmpl b/html/templates/show-tournament.tmpl index 733b1cf..fac6ed0 100644 --- a/html/templates/show-tournament.tmpl +++ b/html/templates/show-tournament.tmpl @@ -1,30 +1,66 @@ [%# vim:set filetype=html: %]

Generelle fakta

- +
+ +
+ +

Start ny runde

+ +
+

For øyeblikket har det vært avholdt [% num_rounds %] runder, + hvilket vil si at du kan begynne runde [% num_rounds + 1 %] + om du skulle ønske det. Vær oppmerksom på at du ikke kan begynne en ny runde + før den forrige er gjort helt ferdig.

+ +

Det er [% num_qualified %] mennesker som vil gå videre til + neste runde, og disse vil bli spredd jevnt utover så mange grupper som du velger.

+ +
+ + + + + + + + + + +
Antall grupper +
Antall som går videre fra hver gruppe +
+ +
+
+

Rankingliste

- + [% FOR r = rounds %]

Runde [% r.round %]

+
+ [% FOR p = r.parallels %] @@ -59,5 +95,6 @@ [% END %]
[% END %] - + +
[% END %]