X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;ds=sidebyside;f=lib%2FGruntmaster%2FPage%2FPb.pm;h=ffdde60697862c0b2db66533649082bb0d20ea7d;hb=191f4979def520b8be01554eb954c80ee42df38b;hp=8e4a40886e26d329c6a113d84e97ed209ecd6f19;hpb=bb95f538bf263c0294d87cfb90d58c66117b9aab;p=plack-app-gruntmaster.git diff --git a/lib/Gruntmaster/Page/Pb.pm b/lib/Gruntmaster/Page/Pb.pm index 8e4a408..ffdde60 100644 --- a/lib/Gruntmaster/Page/Pb.pm +++ b/lib/Gruntmaster/Page/Pb.pm @@ -11,38 +11,37 @@ use constant TEMPLATES => { en => <<'HTML',

Beginner

- +
+ +

Easy

- +
+ +

Medium

- +
+ +

Hard

- +
+ +
- +
+ +
HTML }; sub _generate{ - my ($self, $htc, $path, $lang) = @_; - - $path =~ m,^(?:ct/([^/]+)/)?pb/index.html$,; - local $Gruntmaster::Data::contest = $1; + my ($self, $htc, $lang, $env, $ct) = @_; + debug $env => "language is '$lang' and contest is '$ct'"; + local $Gruntmaster::Data::contest = $ct if $ct; my @problems = sort { $b->{name} cmp $a->{name} } map +{ id => $_,