From e40d63cddada5e7792c582ff6f52766946bb485e Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Fri, 28 Feb 2014 11:47:20 +0200 Subject: [PATCH] Add full names to standings --- lib/Gruntmaster/Page/St.pm | 1 + tmpl/st.en | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) 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
+
() -- 2.39.2