From: Marius Gavrilescu Date: Mon, 7 Dec 2015 16:34:29 +0000 (+0200) Subject: Fix problem list display during contest X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=5dcb426c8e2d982375d06db067939478c165a8f4;p=gruntmaster-page.git Fix problem list display during contest --- diff --git a/lib/Plack/App/Gruntmaster/HTML.pm b/lib/Plack/App/Gruntmaster/HTML.pm index c629383..b361978 100644 --- a/lib/Plack/App/Gruntmaster/HTML.pm +++ b/lib/Plack/App/Gruntmaster/HTML.pm @@ -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 {