Fix links from contest jobs to problems
[gruntmaster-page.git] / lib / Plack / App / Gruntmaster / HTML.pm
index b8e0562186439164b2632e6de451a77020bc554c..21bb9d4edb648537e8a78a24af00ff59483d1721 100644 (file)
@@ -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});
This page took 0.009502 seconds and 4 git commands to generate.