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