Add dane to flags icons
[buildfarm-server.git] / templates / status.tt
index 8e44bfcd25926eacdbf8861f7f9170f60cb38e33..4807d66769a6eaa62e8b1396c1cee8704e22d52a 100644 (file)
@@ -13,8 +13,9 @@ See accompanying License file for license details
      mysql => '/img/mysql_logo.png',
      pgsql => '/img/postgresql-icon-32.png',
      ldap => '/img/openldap_logo.jpg',
+     dane => '/img/helmet.png',
      doc => '/img/doc.png',
-     test => '/img/hammer.jpeg',
+     #test => '/img/hammer.jpeg',
      #python => '/img/python.png',
      #debug => '/img/bug.png',
      #pam => '/img/pam.png',
@@ -46,7 +47,7 @@ See accompanying License file for license details
 [%- END -%]
 [%# 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 %]<img src=[% PROCESS colour %] title="[% st %]-[% st + w %]" height=16 width=[% w %] class=inline align=bottom/>[%- END -%]
+[%- BLOCK colourbar %]<img src=[% PROCESS colour %] title="[% st %]-[% st + w - 1 %]" height=16 width=[% w %] class=inline align=bottom/>[%- END -%]
 [% WRAPPER 'page.tt' 
        title = 'Exim BuildFarm Status'
        bodyclass = 'none'
@@ -95,7 +96,7 @@ See accompanying License file for license details
                [%- row.snapshot | uri %]">
                 [%- IF row.stage != 'OK' %]Details[% ELSE %]Config[% END -%]</a></td>
 
-    <td class="flags">[% FOREACH flag IN row.build_flags.split().sort() ; PROCESS img ; END %]</td>
+    <td class="flags">[% FOREACH flag IN row.build_flags.split().unique().sort() ; PROCESS img ; END %]</td>
     <td class="tests">[% FOREACH range IN row.log_text ;
        r = range.split(' '); c = r.0; st = r.1; w = r.2; PROCESS colourbar; END %]</td>
 </tr>