Ignore:
Timestamp:
Jun 26, 2018, 10:18:07 AM (6 years ago)
Author:
g7moreau
Message:
  • Move css style in an independant file velvice.css
File:
1 edited

Legend:

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

    r261 r263  
    1515use strict;
    1616use warnings;
    17 use version; our $VERSION = version->declare('0.6.6');
     17use version; our $VERSION = version->declare('0.7.1');
    1818
    1919use CGI;
     
    2828my $cgi_script_name = $query->script_name();
    2929my $cgi_path        = $cgi_script_name =~ s{/[^/]+\.cgi$}{}r;
     30undef $query;
    3031
    3132my $config = {};
     
    3637$config->{'nagios-server'}{'portal-url'}  ||= $cgi_path =~ s{/cgi-bin/}{/}r . '/';
    3738$config->{'nagios-server'}{'status-cgi'}  ||= "$cgi_path/status.cgi";
     39$config->{'nagios-server'}{'stylesheets'} ||= $config->{'nagios-server'}{'portal-url'} =~ s{/?$}{/stylesheets}r;
    3840$config->{'host-mapping'}                 ||= {};
    3941$config->{'color-downtime'}               ||= {};
     
    111113 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    112114 <title>Nagios  Velvice</title>
     115 <link rel="stylesheet" type="text/css" href="$config->{'nagios-server'}{'stylesheets'}/velvice.cgi">
    113116</head>
    114 <style type="text/css">
    115 /* https://stackoverflow.com/questions/14920401/how-to-simulate-hfill-with-html-and-css */
    116 h1 ul {
    117    display: flex;
    118    justify-content: space-between;
    119    }
    120 h1 li {
    121    display: inline;
    122    }
    123 td.bold {
    124    font-weight: bold;
    125    }
    126 </style>
    127117<body>
    128118<h1>
Note: See TracChangeset for help on using the changeset viewer.