]> iEval git - plack-app-gruntmaster.git/commitdiff
Add full names to standings
authorMarius Gavrilescu <marius@ieval.ro>
Fri, 28 Feb 2014 09:47:20 +0000 (11:47 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Fri, 28 Feb 2014 09:48:32 +0000 (11:48 +0200)
lib/Gruntmaster/Page/St.pm
tmpl/st.en

index 3857c1ad22f991a6c5e5745b1ee5e6b9ef1a67d8..22d6e30ca323697feabf8ee7e8d769a9994a7566 100644 (file)
@@ -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,
index 0c9893b1bd71c2bbc887151c788bbd62ea113319..4bb3f040e6ce71aca83a27089333912566b91115 100644 (file)
@@ -1,11 +1,11 @@
 <table border class="table table-border table-striped">
 <thead>
-<tmpl_if problems><tr><th>Rank<th>Username<tmpl_loop problems><th><tmpl_var _></tmpl_loop><th>Total
-<tmpl_else><tr><th>Rank<th>Username<th>Score
+<tmpl_if problems><tr><th>Rank<th>User<tmpl_loop problems><th><tmpl_var _></tmpl_loop><th>Total
+<tmpl_else><tr><th>Rank<th>User<th>Score
 </tmpl_if>
 
 <tbody>
-<tmpl_loop st><tr><td><tmpl_var rank><td><tmpl_var user>
+<tmpl_loop st><tr><td><tmpl_var rank><td><tmpl_var user><tmpl_if name> (<tmpl_var_name>)</tmpl_if>
 <tmpl_if problems><tmpl_loop scores><td><tmpl_var _>
 </tmpl_loop></tmpl_if><td><tmpl_var score>
 </tmpl_loop>
This page took 0.029183 seconds and 4 git commands to generate.