From db78ca4c7bad712e4d49337858e1970547b1d20a Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Fri, 18 Feb 2005 13:27:39 +0000 Subject: [PATCH] Added links for all songs (no backend yet) in the tournament view. --- html/show-tournament.pl | 4 ++-- html/templates/show-tournament.tmpl | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/html/show-tournament.pl b/html/show-tournament.pl index 61c3bad..3d0db3c 100755 --- a/html/show-tournament.pl +++ b/html/show-tournament.pl @@ -51,9 +51,9 @@ for my $score (@$scores) { } if ($score->{'position'} == 1) { if ($score->{'chosen'}) { - push @{$p->[$#$p]->{'songs'}}, ''; + push @{$p->[$#$p]->{'songs'}}, { song => -1, title => '' }; } else { - push @{$p->[$#$p]->{'songs'}}, $score->{'title'}; + push @{$p->[$#$p]->{'songs'}}, $score; } $p->[$#$p]->{'num_songs'}++; } diff --git a/html/templates/show-tournament.tmpl b/html/templates/show-tournament.tmpl index a5c539e..ee2be73 100644 --- a/html/templates/show-tournament.tmpl +++ b/html/templates/show-tournament.tmpl @@ -112,10 +112,10 @@ [% END %] [% FOR s = p.songs %] - [% IF s == '' %] + [% IF s.song == -1 %] Selvvalgt [% ELSE %] - [% s %] + [% s.title %] [% END %] [% END %] [% IF p.num_songs > 1 %] @@ -138,7 +138,7 @@ [% s.playmode %] [% s.difficulty %] [% IF s.chosen %] - [% s.title %] + [% s.title %] [% END %] [% END %] [% IF p.num_songs > 1 %] -- 2.39.2