From 36e1563a700fa4a2a13bc265e054a657f512e141 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Mon, 14 Feb 2005 22:15:04 +0000 Subject: [PATCH] Split chosen songs into two table cells. --- html/show-tournament.pl | 2 +- html/templates/show-tournament.tmpl | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/html/show-tournament.pl b/html/show-tournament.pl index b4b6e04..5a98ff8 100755 --- a/html/show-tournament.pl +++ b/html/show-tournament.pl @@ -39,7 +39,7 @@ for my $score (@$scores) { } if ($score->{'position'} == 1) { if ($score->{'chosen'}) { - push @{$p->[$#$p]->{'songs'}}, 'Selvvalgt'; + push @{$p->[$#$p]->{'songs'}}, ''; } else { push @{$p->[$#$p]->{'songs'}}, $score->{'title'}; } diff --git a/html/templates/show-tournament.tmpl b/html/templates/show-tournament.tmpl index 1ae4de1..3dce27b 100644 --- a/html/templates/show-tournament.tmpl +++ b/html/templates/show-tournament.tmpl @@ -82,8 +82,12 @@ Gruppe [% p.parallel %] [% END %] [% FOR s = p.songs %] +[% IF s == '' %] + Selvvalgt +[% ELSE %] [% s %] [% END %] +[% END %] [% IF p.num_songs > 1 %] Total [% END %] @@ -93,12 +97,10 @@ [% pl.nick %] [% FOR s = pl.songs %] - - [% s.score %] + [% s.score %] [% IF s.chosen %] - : [% s.title %] + [% s.title %] [% END %] - [% END %] [% IF p.num_songs > 1 %] [% pl.total %] -- 2.39.2