X-Git-Url: https://git.exim.org/buildfarm-server.git/blobdiff_plain/1644028e51b8f9e9d70b29983820dd581252adf7..de61618de37c2e0b4ed7b972a73ceba0f169fe09:/trunk/templates/history.tt diff --git a/trunk/templates/history.tt b/trunk/templates/history.tt new file mode 100644 index 0000000..dd050ed --- /dev/null +++ b/trunk/templates/history.tt @@ -0,0 +1,56 @@ +[%- BLOCK cl %] class="[% SWITCH bgfor -%] + [%- CASE 'OK' %]pass[% CASE 'ContribCheck' %]warn[% CASE [ 'Check' 'InstallCheck' ] %]warnx[% CASE %]fail[% END %]" +[%- END -%] +[% WRAPPER 'page.tt' + title = 'PostgreSQL BuildFarm History' + bodyclass = 'history' + pagebutton = 'none' +%] +

PostgreSQL BuildFarm Status History

+ + + + + + + +
System Detail
Farm member[% member %]
OS[% statrows.0.operating_system %] [% statrows.0.os_version %]
Compiler[% statrows.0.compiler %] [% statrows.0.compiler_version %]
Architecture[% statrows.0.architecture %]
Owner[% statrows.0.owner_email %]
+[% IF statrows.0.sys_notes %] +
+ + + + + + + + + + +
System NotesDateNotes
[% statrows.0.sys_notes_date %][% statrows.0.sys_notes %]
+[% END %] +

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

+[% BLOCK stdet %] + + [%- row.when_ago | replace('\s',' ') %] ago  + [% row.stage -%] + + [%- IF row.stage != 'OK' %]Details[% ELSE %]Config[% 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 %] +
+[% END %]