date => (job_date() ? strftime ('%c' => localtime job_date) : '?'),
extension => job_extension,
name => problem_name job_problem,
- user_name => do { local $Gruntmaster::Data::contest; user_name job_user },
problem => job_problem,
result => job_result,
result_text => job_result_text,
size => sprintf ("%.2f KiB", job_filesize() / 1024),
user => job_user}, ($page - 1) * PAGE_SIZE + 1 .. ($page == $pages ? jobcard : $page * PAGE_SIZE);
+ $_->{user_name} = do { local $Gruntmaster::Data::contest; user_name $_->{user} } for @log;
$htc->param(log => \@log);
$htc->param(next => $page + 1) unless $page == $pages;
$htc->param(prev => $page - 1) unless $page == 1;
$htc->param(name => problem_name $id);
$htc->param(author => problem_author $id);
$htc->param(owner => problem_owner $id);
+ $htc->param(owner_name => do{ local $Gruntmaster::Data::contest; user_name $htc->param('owner')} );
$htc->param(statement => problem_statement $id);
}
<div class="col-md-3">
<dl>
<dt>Author</dt> <dd><tmpl_var author></dd>
-<dt>Owner</dt> <dd><tmpl_var owner></dd>
+<dt>Owner</dt> <dd><a href="/us/<tmpl_var owner>"><tmpl_if owner_name><tmpl_var owner_name><tmpl_else><tmpl_var owner></tmpl_if></a></dd>
</dl>
<tmpl_if cansubmit>