X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FGruntmaster%2FPage%2FPb.pm;h=ba78869c5f763fbafcc40a1c187379117f37df1a;hb=b7bd0bad53df03baf5dc302ade58bea4f73d0880;hp=8e4a40886e26d329c6a113d84e97ed209ecd6f19;hpb=bb95f538bf263c0294d87cfb90d58c66117b9aab;p=gruntmaster-page.git diff --git a/lib/Gruntmaster/Page/Pb.pm b/lib/Gruntmaster/Page/Pb.pm index 8e4a408..ba78869 100644 --- a/lib/Gruntmaster/Page/Pb.pm +++ b/lib/Gruntmaster/Page/Pb.pm @@ -7,42 +7,10 @@ use Gruntmaster::Page::Base pb => 'Problems'; our @ISA = qw/Gruntmaster::Page::Base/; our $VERSION = '0.001'; -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 => $_,