6c66ccd96fdacd98debfd53a25eb32d3aa305790
[buildfarm-server.git] / templates / status.tt
1 [%#
2
3 Copyright (c) 2003-2010, Andrew Dunstan
4
5 See accompanying License file for license details
6
7 -%]
8 [%
9  flag_imgs = {
10      perl = '/img/camel.png',
11      openssl => '/img/ssl_icon.gif',
12      gnutls => '/img/gnutls_icon.gif',
13      mysql => '/img/mysql_logo.png',
14      pgsql => '/img/postgresql-icon-32.png',
15      ldap => '/img/openldap_logo.jpg',
16      #python => '/img/python.png',
17      #debug => '/img/bug.png',
18      #pam => '/img/pam.png',
19      #cassert => '/img/cassert.png',
20      #nls => '/img/translateicon.gif',
21      #krb5 => '/img/krb.gif',
22      #gssapi => '/img/gssapi.gif',
23      #tcl => '/img/tcl.png',
24      #vpath => '/img/vpath.png',
25      #xml => '/img/xml.png',
26      #'thread-safety' => '/img/threads.gif',
27      #'integer-datetimes' => '/img/days.png',
28      }
29 -%]
30 [%- BLOCK img ; IF flag == 'depend' or flag == 'gnu-ld' ; ; ELSIF flag_imgs.$flag %]<img src="[% flag_imgs.$flag %]" title="[% flag %]" alt="[% flag %]" height="16" width="16" class="inline" align="bottom" />  [% ELSE %][%#
31                                                                                                                                                                                                           flag ; ' '
32 %][% END ; END -%]
33 [%- BLOCK sysnotes ; IF row.sys_notes %]<img src="/img/notes.png" height="16" width="16" title="[% row.sys_notes_ts.replace(' .*','') | html %]: [% row.sys_notes | html %]" />
34 [%- ELSE %]&nbsp;[% END ; END -%]
35 [%- BLOCK cl %] class="[% SWITCH bgfor.replace('-.*','') -%]
36   [%- CASE 'OK' %]pass[% CASE 'ContribCheck' %]warn[% CASE [ 'Check' 'InstallCheck' ] %]warnx[% CASE %]fail[% END %]"
37 [%- END -%]
38 [% WRAPPER 'page.tt' 
39         title = 'Exim BuildFarm Status'
40         bodyclass = 'none'
41         pagebutton = 'status'
42 %]
43     <h1>Exim BuildFarm Status</h1>
44     <p>
45       Shown here is the latest status of each farm member 
46       for each branch it has reported on in the last 30 days.
47     </p>
48     <p>
49        Use the farm member link for history of that member 
50        on the relevant branch.
51     </p>
52 <table><tr><th class="head" rowspan="2">Legend</th>
53 [% FOREACH flagset IN flag_imgs %]
54 <td><img src="[% flagset.value %]" title="[% flagset.key %]" alt="[% flagset.key %]" height="16" width="16" class="inline"  align="center"/> =  [% flagset.key %]</td>
55 [% IF loop.count == 7 %]</tr><tr>[% END %]
56 [% END %]
57 </tr></table>
58 <br />
59     <table cellspacing="0">
60 [% brch = "" %]
61 [% FOREACH row IN statrows %]
62 [% IF row.branch != brch ; brch = row.branch %]
63 <tr><th class="head" colspan="5">Branch: [% brch %]</th></tr>
64 <tr><th colspan="2">Alias</th><th>System</th><th>Status</th><th>Flags</th></tr>
65 [% END %]
66 <tr [% PROCESS cl bgfor=row.stage %]>
67     <td><a 
68     href="show_history.pl?nm=[% row.sysname %]&amp;br=[% row.branch %]"
69     title="History"
70     >[% row.sysname %]</a></td>
71     <td>[% PROCESS sysnotes %]</td>
72     <td><span class="opsys">[% row.operating_system %]
73             [% row.os_version %]</span> <span class="compiler">
74             [%- row.compiler %]
75             [% row.compiler_version %]</span> <span class="arch">
76             [%- row.architecture %]</span></td>
77     <td class="status">
78             [%- row.when_ago | replace('\s','&nbsp;') %]&nbsp;ago&nbsp;
79             [% row.stage -%]
80             [[% row.git_head_ref.substr(0,7) %]]
81             <a href="show_log.pl?nm=
82                [%- row.sysname %]&amp;dt=
83                [%- row.snapshot | uri %]">
84                 [%- IF row.stage != 'OK' %]Details[% ELSE %]Config[% END -%]</a></td>
85
86     <td class="flags">[% FOREACH flag IN row.build_flags.split().sort() ; PROCESS img ; END %]</td>
87 </tr>
88 [% END %]
89     </table>
90 [% END %]