From b7aa9f38347edb4509ccd9dea924238f79afea71 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Thu, 5 Feb 2015 18:35:54 +0200 Subject: [PATCH] Add contest to problem links in standings --- lib/Plack/App/Gruntmaster/HTML.pm | 1 + 1 file changed, 1 insertion(+) 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 { -- 2.39.2