From 275ef3e2cbb7ae60732b0281b626da7f92dd5a10 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bj=C3=B8rn=20Rustad?= Date: Thu, 15 Aug 2013 22:22:00 +0200 Subject: [PATCH] Show points in team listing --- lib/Duplo/Manager.pm | 3 ++- templates/manager/team.html.ep | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/lib/Duplo/Manager.pm b/lib/Duplo/Manager.pm index 91bcf20..88537e4 100644 --- a/lib/Duplo/Manager.pm +++ b/lib/Duplo/Manager.pm @@ -84,7 +84,8 @@ sub team { name, team_name, price, - type + type, + points FROM stage_team(?, ?) "); diff --git a/templates/manager/team.html.ep b/templates/manager/team.html.ep index e2ee36a..1d3aae0 100644 --- a/templates/manager/team.html.ep +++ b/templates/manager/team.html.ep @@ -9,12 +9,20 @@ % for my $stage (@{ $stages }) {

<%= $stage->{'name'} %>

+ + + + + + % for my $rider (@{ $stage_team->{$stage->{'stage'}} }) { + % } % if (defined $director->{'team'}) { @@ -23,6 +31,7 @@ + % }
+ TypeNameTeamPricePoints
<%= $rider->{'type'} %> <%= $rider->{'name'} %> <%= $rider->{'team_name'} %> <%= $rider->{'price'} %><%= $rider->{'points'} %>
<%= $director->{'name'} %> <%= $director->{'price'} %>TODO
-- 2.47.3