From: Marius Gavrilescu Date: Mon, 12 Jan 2015 20:09:22 +0000 (+0200) Subject: Pass private argument to job log from pb_entry X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=7b6c2d7889ca893b288e0da004345481ed413a8c;p=plack-app-gruntmaster.git Pass private argument to job log from pb_entry --- diff --git a/lib/Plack/App/Gruntmaster/HTML.pm b/lib/Plack/App/Gruntmaster/HTML.pm index 91f1fc4..f2ce142 100644 --- a/lib/Plack/App/Gruntmaster/HTML.pm +++ b/lib/Plack/App/Gruntmaster/HTML.pm @@ -138,6 +138,7 @@ sub process_pb_entry { $tree->fid('owner')->edit_href(sub{s/owner_id/$args{owner}/}); $tree->fid('job_log')->edit_href(sub{s/problem_id/$args{id}/}); $tree->fid('solution')->edit_href(sub{s/problem_id/$args{id}/}); + $tree->fid('job_log')->edit_href(sub{$_ .= "&private=$args{private}"}) if $args{private}; $tree->content_handler( statement => literal $args{statement}, author => $args{author},