adjust warning class logic to ignore locale
authorAndrew Dunstan <andrew@dunslane.net>
Mon, 2 Feb 2009 16:18:05 +0000 (16:18 +0000)
committerAndrew Dunstan <andrew@dunslane.net>
Mon, 2 Feb 2009 16:18:05 +0000 (16:18 +0000)
cgi-bin/show_status.pl

index d60fb9f7f563cf7b6f7bfd7e2d1e676cf1356838..975d52aa87c7739ee728e443792acff85ff29416 100755 (executable)
@@ -108,7 +108,7 @@ __DATA__
 [%- 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 %][%#
                                                                                                                                                                                                          flag ; ' '
 %][% END ; END -%]
-[%- BLOCK cl %] class=" [% SWITCH bgfor -%]
+[%- BLOCK cl %] class="[% SWITCH bgfor.replace('-.*','') -%]
   [%- CASE 'OK' %]pass[% CASE 'ContribCheck' %]warn[% CASE [ 'Check' 'InstallCheck' ] %]warnx[% CASE %]fail[% END %]"
 [%- END -%]
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"