]> iEval git - gruntmaster-page.git/blobdiff - lib/Gruntmaster/Page/Pb.pm
Introduce Gruntmaster::Page::Generic
[gruntmaster-page.git] / lib / Gruntmaster / Page / Pb.pm
diff --git a/lib/Gruntmaster/Page/Pb.pm b/lib/Gruntmaster/Page/Pb.pm
deleted file mode 100644 (file)
index ba78869..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-package Gruntmaster::Page::Pb;
-
-use 5.014000;
-use strict;
-use warnings;
-use Gruntmaster::Page::Base pb => 'Problems';
-our @ISA = qw/Gruntmaster::Page::Base/;
-our $VERSION = '0.001';
-
-sub _generate{
-       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    => $_,
-               name  => problem_name,
-               level => problem_level}, problems;
-
-       for my $d (qw/beginner easy medium advanced hard/) {
-               $htc->param($d => [grep {$_->{level} and $_->{level} eq $d} @problems]);
-       }
-       $htc->param(levels => grep { $_->{level} } @problems);
-       $htc->param(problems => \@problems);
-}
-
-1
This page took 0.021469 seconds and 4 git commands to generate.