From 3994b2a723ce18ecde2f93e653aad37650ec1ea5 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Sun, 8 Mar 2015 10:01:29 +0200 Subject: [PATCH] Do not mark problems as private in process_pb during contests --- lib/Plack/App/Gruntmaster/HTML.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Plack/App/Gruntmaster/HTML.pm b/lib/Plack/App/Gruntmaster/HTML.pm index f9f1eb7..9155503 100644 --- a/lib/Plack/App/Gruntmaster/HTML.pm +++ b/lib/Plack/App/Gruntmaster/HTML.pm @@ -186,7 +186,7 @@ sub process_pb { $tr->fclass('name')->namedlink($data->{id}, $data->{name}); $tr->fclass('name')->find('a')->edit_href(sub {$_ .= "?contest=$args{contest}"}) if $args{contest}; $tr->fclass('owner')->namedlink($data->{owner}, $data->{owner_name}); - $tr->find('td')->attr(class => $tr->find('td')->attr('class').' warning') if $data->{private}; + $tr->find('td')->attr(class => $tr->find('td')->attr('class').' warning') if $data->{private} && !$args{contest}; }; my $iter = sub { my ($data, $div) = @_; -- 2.39.2