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