Changeset 284
- Timestamp:
- Jul 15, 2018, 6:01:21 PM (6 years ago)
- Location:
- trunk/nagios-velvice
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/nagios-velvice/velvice.cgi
r283 r284 15 15 use strict; 16 16 use warnings; 17 use version; our $VERSION = version->declare('0.8. 2');17 use version; our $VERSION = version->declare('0.8.3'); 18 18 19 19 use CGI; … … 73 73 my $factor = ($downtime * $config->{'color-downtime'}{'factor'}) / $config->{'color-downtime'}{'day-max'}; 74 74 return Color::Calc::color_light_html($color, $factor); 75 } 76 77 sub nosbreak { 78 my ($str) = @_; 79 80 return $str =~ s/\s/\&nbps;/gr; 75 81 } 76 82 … … 149 155 $htmlpage .= " Service:\n"; 150 156 $htmlpage .= join ",\n", 151 map(" <span class='button'><a href='$cgi_script_name?check=" . lc(uri_encode($_)) . "'> $_</a><small>$service_name{$_}</small></span>",157 map(" <span class='button'><a href='$cgi_script_name?check=" . lc(uri_encode($_)) . "'>" . nosbreak($_) . "</a><small>$service_name{$_}</small></span>", 152 158 sort keys %service_name); 153 159 $htmlpage .= ".\n"; -
trunk/nagios-velvice/velvice.css
r283 r284 29 29 } 30 30 31 a#refresh:hover { 32 text-decoration: underline solid; 33 } 34 31 35 a#refresh:after { 32 36 content: "\00A0\21bb"; … … 43 47 44 48 span.button { 45 border: 1px solid #777 777;49 border: 1px solid #777; 46 50 margin: 10px 3px 3px 4px; 47 background: # E0E0E0;51 background: #F0F0F0; 48 52 border-radius: 2ex; 49 padding: 0ex 0. 5ex 0px 0ex;53 padding: 0ex 0.8ex 0px 0ex; 50 54 } 51 55 52 56 .button a { 53 57 background: #E0E0E0; 54 border-right: 3px solid #777777;58 border-right: 2px solid #AAA; 55 59 border-radius: 2ex 0px 0px 2ex; 56 60 padding: 0px 0.5ex 0ex 0.9ex; … … 79 83 80 84 td.hoop { 81 border: 1px solid #777 777;85 border: 1px solid #777; 82 86 } 83 87
Note: See TracChangeset
for help on using the changeset viewer.