Pass private argument to job log from pb_entry
authorMarius Gavrilescu <marius@ieval.ro>
Mon, 12 Jan 2015 20:09:22 +0000 (22:09 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Mon, 12 Jan 2015 20:09:22 +0000 (22:09 +0200)
lib/Plack/App/Gruntmaster/HTML.pm

index 91f1fc4baf091583245eb1ca3c5379cb470ff509..f2ce142269abbc94f5b1f46951cde1b193c9da18 100644 (file)
@@ -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},
This page took 0.010759 seconds and 4 git commands to generate.