X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FGruntmaster%2FPage%2FLog%2FEntry.pm;h=57591b5da3837d2bb3c8bfcd3e5fec057e9f051a;hb=9da2f4958089ae517865b808be61bb12d43b61de;hp=a8abc12d250504802ab57a8ca1d3f988118b17d3;hpb=b83e43dc480771137fcff41589815556881b1243;p=plack-app-gruntmaster.git diff --git a/lib/Gruntmaster/Page/Log/Entry.pm b/lib/Gruntmaster/Page/Log/Entry.pm index a8abc12..57591b5 100644 --- a/lib/Gruntmaster/Page/Log/Entry.pm +++ b/lib/Gruntmaster/Page/Log/Entry.pm @@ -7,24 +7,10 @@ use Gruntmaster::Page::Base log_entry => 'Job '; our @ISA = qw/Gruntmaster::Page::Base/; our $VERSION = '0.001'; -use constant TEMPLATES => { - en => <<'HTML', - - - -
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 = (); @@ -37,6 +23,7 @@ sub _generate{ $htc->param(id => $id); $htc->param(tests => \@tests); + $htc->param(errors => job_errors $id) } 1