]> iEval git - plack-app-gruntmaster.git/commitdiff
Fix problem list display during contest
authorMarius Gavrilescu <marius@ieval.ro>
Mon, 7 Dec 2015 16:34:29 +0000 (18:34 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Mon, 7 Dec 2015 16:34:29 +0000 (18:34 +0200)
lib/Plack/App/Gruntmaster/HTML.pm

index c629383e76b9425eeaaff1a2947fcfa5b076f2ee..b361978fb9e17ddb1f9241f6008121b1f53aca42 100644 (file)
@@ -216,13 +216,13 @@ sub process_pb {
                $tr->set_child_content(class => 'author', $data->{author});
                $tr->set_child_content(class => 'level', ucfirst $data->{level});
                $tr->fclass('name')->namedlink($data->{id}, $data->{name});
-               $tr->fclass('name')->find('a')->edit_href(sub {$_ .= "?contest=$args{contest}"}) if $args{contest};
+               $tr->fclass('name')->find('a')->edit_href(sub {$_ .= "?contest=$args{args}{contest}"}) if $args{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} && !$args{contest};
+               $tr->find('td')->attr(class => $tr->find('td')->attr('class').' warning') if $data->{private} && !$args{args}{contest};
        };
 
        $tree->find('tbody')->find('tr')->iter3([pb_sort @{$args{pb}}], $iter);
-       $tree->fid('open-alert')->detach unless $args{contest};
+       $tree->fid('open-alert')->detach unless $args{args}{contest};
 }
 
 sub process_log_entry {
This page took 0.026828 seconds and 4 git commands to generate.