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,
<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>