From: Marius Gavrilescu Date: Fri, 6 Feb 2015 08:52:50 +0000 (+0200) Subject: Include contest in job list X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=8d690af588170f90b957507454123e3e9070f7a6;p=plack-app-gruntmaster.git Include contest in job list --- diff --git a/lib/Plack/App/Gruntmaster/HTML.pm b/lib/Plack/App/Gruntmaster/HTML.pm index d37d1a7..8f47616 100644 --- a/lib/Plack/App/Gruntmaster/HTML.pm +++ b/lib/Plack/App/Gruntmaster/HTML.pm @@ -226,6 +226,8 @@ sub process_log { $tr->fclass('id')->namedlink($data->{id}); $tr->fclass('problem')->namedlink($data->{problem}, $data->{problem_name}); $tr->fclass('problem')->find('a')->edit_href(sub{$_ .= "?contest=$args{contest}"}) if $args{contest}; + $tr->fclass('contest')->namedlink($data->{contest}, $data->{contest_name}) if $data->{contest}; + $tr->fclass('contest')->replace_content('None') unless $data->{contest}; $tr->fclass('date')->replace_content(ftime $data->{date}); $tr->fclass('format')->replace_content($data->{format}); $tr->fclass('size')->namedlink("$data->{id}.$data->{extension}", sprintf "%.2fKB", $data->{size}/1024); diff --git a/tmpl/log.en b/tmpl/log.en index f6e5097..c95d82b 100644 --- a/tmpl/log.en +++ b/tmpl/log.en @@ -1,9 +1,10 @@ - +
IDProblemDateFormatSizeUserResult
IDProblemContestDateFormatSizeUserResult
Job ID Problem name +Contest name Date Format 3.14KB