]>
iEval git - plack-app-gruntmaster.git/blob - lib/Gruntmaster/Page/Log/Entry.pm
1 package Gruntmaster
::Page
::Log
::Entry
;
6 use parent qw
/Exporter/;
7 our @EXPORT_OK = qw
/generate/;
8 our $VERSION = '0.001';
10 use constant TITLE
=> 'Job <tmpl_var id>';
12 use HTML
::Template
::Compiled
;
13 use POSIX qw
/strftime/;
14 use Gruntmaster
::Page
::Common qw
/header footer/;
15 use Gruntmaster
::Data qw
/job_results/;
21 <tr><th>Test number<th>Result<th>Time
23 <tmpl_loop tests><tr><td><tmpl_var id><td class="r<tmpl_var result>"><tmpl_var result_text><td><tmpl_var time>
29 $templates{$_} = header
($_, TITLE
) . $templates{$_} for keys %templates;
30 $templates{$_} .= footer
$_ for keys %templates;
33 $_[0] =~ m
,^(?
:ct
/([^/]+)/)?log/([^/]+)/index\
.html
$,;
34 local $Gruntmaster::Data
::contest
= $1;
37 my $htc = HTML
::Template
::Compiled
->new(scalarref
=> \
$templates{$_[1]});
40 $_->{time} = sprintf "%.4fs", $_->{time};
44 $htc->param(id
=> $id);
45 $htc->param(tests
=> \
@tests);
This page took 0.054798 seconds and 5 git commands to generate.