X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FGruntmaster%2FPage%2FLog.pm;h=6848bcfc8dbf141f7e8f97c4d2483f928fffe89c;hb=d9f11916894f292e95891470bd43b513c1c5a1bc;hp=7fe888523f0809acda18af0cf88eb0545ff33dae;hpb=5c6aea9392c11422abe85788aac0f62ad3a4dd14;p=plack-app-gruntmaster.git diff --git a/lib/Gruntmaster/Page/Log.pm b/lib/Gruntmaster/Page/Log.pm index 7fe8885..6848bcf 100644 --- a/lib/Gruntmaster/Page/Log.pm +++ b/lib/Gruntmaster/Page/Log.pm @@ -24,6 +24,7 @@ sub _generate{ 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;