Add contest to problem links in standings
authorMarius Gavrilescu <marius@ieval.ro>
Thu, 5 Feb 2015 16:35:54 +0000 (18:35 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Thu, 5 Feb 2015 16:35:54 +0000 (18:35 +0200)
lib/Plack/App/Gruntmaster/HTML.pm

index abb2779ce49f8576527343237f055676b42bcaee..d37d1a703557d15cf4c245b43e5ea99c06f2904f 100644 (file)
@@ -254,6 +254,7 @@ sub process_st {
                my ($data, $th) = @_;
                $th->attr(class => undef);
                $th->namedlink(@$data);
+               $th->find('a')->edit_href(sub{s/$/?contest=$args{args}{contest}/});
        };
        $tree->fclass('problem')->iter3($args{problems}, $pbiter);
        my $iter = sub {
This page took 0.010989 seconds and 4 git commands to generate.