package Gruntmaster::Page::Log;
-use 5.014000;
-use strict;
-use warnings;
use Gruntmaster::Page::Base log => 'Job log';
-our @ISA = qw/Gruntmaster::Page::Base/;
-our $VERSION = '0.001';
use constant PAGE_SIZE => 10;
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;