From 51688d09a1427570771507ac69255071752d7385 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Thu, 17 Feb 2005 18:54:47 +0000 Subject: [PATCH] Added template code for showing rank. --- html/show-tournament.pl | 2 +- html/templates/show-tournament.tmpl | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/html/show-tournament.pl b/html/show-tournament.pl index 0a59d71..f5ecf31 100755 --- a/html/show-tournament.pl +++ b/html/show-tournament.pl @@ -61,7 +61,7 @@ for my $score (@$scores) { my $pl = $p->[$#$p]->{'players'}; if ($score->{'nick'} ne $player) { $player = $score->{'nick'}; - push @$pl, { player => $score->{'player'}, nick => $player, songs => [], total => 0 }; + push @$pl, { player => $score->{'player'}, nick => $player, songs => [], total => 0, rank => 1 }; } push @{$pl->[$#$pl]->{'songs'}}, $score; diff --git a/html/templates/show-tournament.tmpl b/html/templates/show-tournament.tmpl index 0c4e350..a5c539e 100644 --- a/html/templates/show-tournament.tmpl +++ b/html/templates/show-tournament.tmpl @@ -121,6 +121,7 @@ [% IF p.num_songs > 1 %] Total [% END %] + Rank [% IF !r.locked %] [% END %] @@ -143,6 +144,7 @@ [% IF p.num_songs > 1 %] [% pl.total %] [% END %] + [% pl.rank %] [% ELSE %] @@ -221,6 +223,7 @@ [% IF p.num_songs > 1 %] [% pl.total %] [% END %] + [% pl.rank %] [% END %] -- 2.39.2