X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FGruntmaster%2FPage%2FLog%2FEntry.pm;h=57591b5da3837d2bb3c8bfcd3e5fec057e9f051a;hb=9da2f4958089ae517865b808be61bb12d43b61de;hp=2c4aa3acb5cfc1bec533ddf6e673a08e5c80e642;hpb=7f0f55d8d78f78bdc76d6ac3089c6aa085d95be6;p=plack-app-gruntmaster.git diff --git a/lib/Gruntmaster/Page/Log/Entry.pm b/lib/Gruntmaster/Page/Log/Entry.pm index 2c4aa3a..57591b5 100644 --- a/lib/Gruntmaster/Page/Log/Entry.pm +++ b/lib/Gruntmaster/Page/Log/Entry.pm @@ -7,28 +7,10 @@ use Gruntmaster::Page::Base log_entry => 'Job '; our @ISA = qw/Gruntmaster::Page::Base/; our $VERSION = '0.001'; -use constant TEMPLATES => { - en => <<'HTML', -Compiler output: -
- -Results: - - - -
Test numberResultTime -
- -
-HTML -}; - sub _generate{ - my ($self, $htc, $path, $lang) = @_; - - $path =~ m,^(?:ct/([^/]+)/)?log/job/([^/]+)\.html$,; - local $Gruntmaster::Data::contest = $1; - my $id = $2; + my ($self, $htc, $lang, $env, $ct, $id) = @_; + debug $env => "language is '$lang', contest is '$ct' and id is '$id'"; + local $Gruntmaster::Data::contest = $ct if $ct; my @tests = ();