X-Git-Url: https://git.exim.org/buildfarm-server.git/blobdiff_plain/9aab6bac9c2c174a5ef8869e9b947a3917e18087..1d119e20e878ca1f1e8d0cc19c0892b6766c3a5d:/templates/history.tt diff --git a/templates/history.tt b/templates/history.tt index 37463db..b365856 100644 --- a/templates/history.tt +++ b/templates/history.tt @@ -9,11 +9,11 @@ See accompanying License file for license details [%- CASE 'OK' %]pass[% CASE 'ContribCheck' %]warn[% CASE [ 'Check' 'InstallCheck' ] %]warnx[% CASE %]fail[% END %]" [%- END -%] [% WRAPPER 'page.tt' - title = 'PostgreSQL BuildFarm History' + title = 'Exim BuildFarm History' bodyclass = 'history' pagebutton = 'none' %] -

PostgreSQL BuildFarm Status History

+

Exim BuildFarm Status History

@@ -37,6 +37,16 @@ See accompanying License file for license details
System Detail
Farm member[% member %]
[% END %]

Branch: [% branch %][% IF statrows.size >= hm %] (last [% hm %] entries shown)[% END %]

+[% + res_imgs = { + P = '/img/t_good.gif', + F => '/img/t_fail.gif', + '.' => '/img/t_notdone.gif', + } +-%] +[%# The IF-backstop is ugly and I'm not understanding why the res_img lookup does not for for '.' -%] +[%- BLOCK colour ; IF res_imgs.$c.defined ; res_imgs.$c ; ELSE %]/img/t_notdone.gif [% END; END %] +[%- BLOCK colourbar %][%- END -%] [% BLOCK stdet %] [%- row.when_ago | replace('\s',' ') %] ago  @@ -45,19 +55,11 @@ See accompanying License file for license details [%- row.sysname %]&dt= [%- row.snapshot | uri %]"> [%- IF row.stage != 'OK' %]Details[% ELSE %]Config[% END -%] - + [% FOREACH range IN row.log_text ; + r = range.split(' '); c = r.0; st = r.1; w = r.2; PROCESS colourbar; END %] [% END %] - - [% FOREACH offset IN [0,1,2] %][% low = offset * statrows.size / 3 ; high = -1 + (offset + 1) * statrows.size / 3 %] - [% TRY %][% PERL %] - use POSIX qw(floor); - $stash->set(low => floor($stash->get('low'))); - $stash->set(high => floor($stash->get('high'))); - [% END %][% CATCH %] [% END %] - [% END %] -
- [% FOREACH xrow IN statrows.slice(low,high) %][% PROCESS stdet row=xrow %][% END %] + [% FOREACH xrow IN statrows %][% PROCESS stdet row=xrow %][% END %]
[% END %]