From: Steinar H. Gunderson Date: Fri, 18 Feb 2005 13:27:39 +0000 (+0000) Subject: Added links for all songs (no backend yet) in the tournament view. X-Git-Url: https://git.sesse.net/?p=ccbs;a=commitdiff_plain;h=db78ca4c7bad712e4d49337858e1970547b1d20a;hp=8eb86b82b83b305a736f462ea80789db386c0459 Added links for all songs (no backend yet) in the tournament view. --- 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 %]