]> iEval git - gruntmaster-page.git/blobdiff - lib/Gruntmaster/Page/St.pm
Move templates to tmpl/
[gruntmaster-page.git] / lib / Gruntmaster / Page / St.pm
index 97d0d065d48e3990aff57b514a553cf58020defa..099c1936a6f6646c747fdd8a44ff0bb5530f3e81 100644 (file)
@@ -7,23 +7,6 @@ use Gruntmaster::Page::Base st => 'Standings';
 our @ISA = qw/Gruntmaster::Page::Base/;
 our $VERSION = '0.001';
 
-use constant TEMPLATES => {
-       en => <<'HTML',
-<table border>
-<thead>
-<tmpl_if problems><tr><th>Username<tmpl_loop problems><th><tmpl_var _></tmpl_loop><th>Total
-<tmpl_else><tr><th>Username<th>Score
-</tmpl_if>
-
-<tbody>
-<tmpl_loop st><tr><td><tmpl_var user>
-<tmpl_if problems><tmpl_loop scores><td><tmpl_var _>
-</tmpl_loop></tmpl_if><td><tmpl_var score>
-</tmpl_loop>
-</table>
-HTML
-};
-
 use constant LEVEL_VALUES => {
        beginner => 100,
        easy => 250,
@@ -45,8 +28,8 @@ sub calc_score{
 }
 
 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'";
        my ($totaltime, $start);
 
        local $Gruntmaster::Data::contest;
This page took 0.027308 seconds and 4 git commands to generate.