Fix links from contest jobs to problems
authorMarius Gavrilescu <marius@ieval.ro>
Thu, 11 Feb 2016 15:47:21 +0000 (15:47 +0000)
committerMarius Gavrilescu <marius@ieval.ro>
Thu, 11 Feb 2016 15:47:21 +0000 (15:47 +0000)
lib/Plack/App/Gruntmaster/HTML.pm

index b361978fb9e17ddb1f9241f6008121b1f53aca42..e69dac980ba6a87d8b1b568d34cfa44cd3435661 100644 (file)
@@ -257,7 +257,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.009903 seconds and 4 git commands to generate.