From: Marius Gavrilescu Date: Sun, 8 Mar 2015 08:01:29 +0000 (+0200) Subject: Do not mark problems as private in process_pb during contests X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=3994b2a723ce18ecde2f93e653aad37650ec1ea5;p=gruntmaster-page.git Do not mark problems as private in process_pb during contests --- 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) = @_;