]> iEval git - plack-app-gruntmaster.git/commitdiff
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 23:22:39 +0000 (23:22 +0000)
(cherry picked from commit 06652b6de8dfe1dfdc25729a22330ff6cca489df)

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.028203 seconds and 4 git commands to generate.