From: Marius Gavrilescu Date: Thu, 11 Feb 2016 15:47:21 +0000 (+0000) Subject: Fix links from contest jobs to problems X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=e2c74da60e49fefe027701ff143af2c5e0e109a4;p=gruntmaster-page.git Fix links from contest jobs to problems (cherry picked from commit 06652b6de8dfe1dfdc25729a22330ff6cca489df) --- diff --git a/lib/Plack/App/Gruntmaster/HTML.pm b/lib/Plack/App/Gruntmaster/HTML.pm index b8e0562..21bb9d4 100644 --- a/lib/Plack/App/Gruntmaster/HTML.pm +++ b/lib/Plack/App/Gruntmaster/HTML.pm @@ -254,7 +254,7 @@ sub process_log { my ($data, $tr) = @_; $tr->fclass('id')->namedlink($data->{id}); $tr->fclass('problem')->namedlink($data->{problem}, $data->{problem_name}); - $tr->fclass('problem')->find('a')->edit_href(sub{$_ .= "?contest=$args{args}{contest}"}) if $args{args}{contest}; + $tr->fclass('problem')->find('a')->edit_href(sub{$_ .= '?contest='.$data->{contest}}) if $data->{contest}; $tr->fclass('contest')->namedlink($data->{contest}, $data->{contest_name}) if $data->{contest}; $tr->fclass('contest')->replace_content('None') unless $data->{contest}; $tr->fclass('date')->replace_content(ftime $data->{date});