X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FGruntmaster%2FPage%2FPb.pm;h=ba78869c5f763fbafcc40a1c187379117f37df1a;hb=3a70241ac427b9b568629f1068c95538e36ffd2e;hp=7a9a0c254c33a06c0f84c8012004409de72cb5d6;hpb=a94f84535623ae0de44b63290aa4c8b1bf3e5eaa;p=plack-app-gruntmaster.git diff --git a/lib/Gruntmaster/Page/Pb.pm b/lib/Gruntmaster/Page/Pb.pm index 7a9a0c2..ba78869 100644 --- a/lib/Gruntmaster/Page/Pb.pm +++ b/lib/Gruntmaster/Page/Pb.pm @@ -7,40 +7,9 @@ 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, $lang, $logger, $ct) = @_; - debug $logger => "language is '$lang' and contest is '$ct'"; + 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 +{