From: Marius Gavrilescu Date: Thu, 5 Feb 2015 16:35:54 +0000 (+0200) Subject: Add contest to problem links in standings X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=b7aa9f38347edb4509ccd9dea924238f79afea71;p=gruntmaster-page.git Add contest to problem links in standings --- diff --git a/lib/Plack/App/Gruntmaster/HTML.pm b/lib/Plack/App/Gruntmaster/HTML.pm index abb2779..d37d1a7 100644 --- a/lib/Plack/App/Gruntmaster/HTML.pm +++ b/lib/Plack/App/Gruntmaster/HTML.pm @@ -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 {