From 8d690af588170f90b957507454123e3e9070f7a6 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Fri, 6 Feb 2015 10:52:50 +0200 Subject: [PATCH] Include contest in job list --- lib/Plack/App/Gruntmaster/HTML.pm | 2 ++ tmpl/log.en | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) 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 -- 2.39.2