]> iEval git - gruntmaster-page.git/commitdiff
Do not mark problems as private in process_pb during contests
authorMarius Gavrilescu <marius@ieval.ro>
Sun, 8 Mar 2015 08:01:29 +0000 (10:01 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Sun, 8 Mar 2015 08:01:29 +0000 (10:01 +0200)
lib/Plack/App/Gruntmaster/HTML.pm

index f9f1eb732fa8d93a0651b08a72e6f4e24c1f4a49..9155503f278afcdcd16808d6d66e1b1ccfd1e39e 100644 (file)
@@ -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) = @_;
This page took 0.028394 seconds and 4 git commands to generate.