From: Marius Gavrilescu Date: Fri, 28 Feb 2014 09:47:20 +0000 (+0200) Subject: Add full names to standings X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=e40d63cddada5e7792c582ff6f52766946bb485e;p=plack-app-gruntmaster.git Add full names to standings --- diff --git a/lib/Gruntmaster/Page/St.pm b/lib/Gruntmaster/Page/St.pm index 3857c1a..22d6e30 100644 --- a/lib/Gruntmaster/Page/St.pm +++ b/lib/Gruntmaster/Page/St.pm @@ -54,6 +54,7 @@ sub _generate{ my $user = $_; +{ user => $user, + name => do {local $Gruntmaster::Data::contest; user_name $user}, score => sum (values $scores{$user}), scores => [map { $scores{$user}{$_} // '-'} @problems], problems => $Gruntmaster::Data::contest, diff --git a/tmpl/st.en b/tmpl/st.en index 0c9893b..4bb3f04 100644 --- a/tmpl/st.en +++ b/tmpl/st.en @@ -1,11 +1,11 @@ - -
RankUsernameTotal -
RankUsernameScore +
RankUserTotal +
RankUserScore
+
()