X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FGruntmaster%2FPage%2FPb.pm;h=7a9a0c254c33a06c0f84c8012004409de72cb5d6;hb=52f5c67912992aecd2a58b32cb81e1aabb7d94cc;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..7a9a0c2 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, $logger, $ct) = @_; + debug $logger => "language is '$lang' and contest is '$ct'"; + local $Gruntmaster::Data::contest = $ct if $ct; my @problems = sort { $b->{name} cmp $a->{name} } map +{ id => $_,