Changeset 284


Ignore:
Timestamp:
Jul 15, 2018, 6:01:21 PM (6 years ago)
Author:
g7moreau
Message:
  • No break text on button
Location:
trunk/nagios-velvice
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/nagios-velvice/velvice.cgi

    r283 r284  
    1515use strict;
    1616use warnings;
    17 use version; our $VERSION = version->declare('0.8.2');
     17use version; our $VERSION = version->declare('0.8.3');
    1818
    1919use CGI;
     
    7373   my $factor = ($downtime * $config->{'color-downtime'}{'factor'}) / $config->{'color-downtime'}{'day-max'};
    7474   return Color::Calc::color_light_html($color, $factor);
     75   }
     76
     77sub nosbreak {
     78   my ($str) = @_;
     79   
     80   return $str =~ s/\s/\&nbps;/gr;
    7581   }
    7682
     
    149155   $htmlpage .= " Service:\n";
    150156   $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>",
    152158         sort keys %service_name);
    153159   $htmlpage .= ".\n";
  • trunk/nagios-velvice/velvice.css

    r283 r284  
    2929   }
    3030
     31a#refresh:hover {
     32   text-decoration:  underline solid;
     33   }
     34
    3135a#refresh:after {
    3236   content:          "\00A0\21bb";
     
    4347
    4448span.button {
    45     border:          1px solid #777777;
     49    border:          1px solid #777;
    4650    margin:          10px 3px 3px 4px;
    47     background:      #E0E0E0;
     51    background:      #F0F0F0;
    4852    border-radius:   2ex;
    49     padding:         0ex 0.5ex 0px 0ex;
     53    padding:         0ex 0.8ex 0px 0ex;
    5054    }
    5155
    5256.button a {
    5357   background:       #E0E0E0;
    54    border-right:     3px solid #777777;
     58   border-right:     2px solid #AAA;
    5559   border-radius:    2ex 0px 0px 2ex;
    5660   padding:          0px 0.5ex 0ex 0.9ex;
     
    7983
    8084td.hoop {
    81    border:           1px solid #777777;
     85   border:           1px solid #777;
    8286   }
    8387
Note: See TracChangeset for help on using the changeset viewer.