Changeset 263 for trunk/nagios-velvice/velvice.cgi
- Timestamp:
- Jun 26, 2018, 10:18:07 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/nagios-velvice/velvice.cgi
r261 r263 15 15 use strict; 16 16 use warnings; 17 use version; our $VERSION = version->declare('0. 6.6');17 use version; our $VERSION = version->declare('0.7.1'); 18 18 19 19 use CGI; … … 28 28 my $cgi_script_name = $query->script_name(); 29 29 my $cgi_path = $cgi_script_name =~ s{/[^/]+\.cgi$}{}r; 30 undef $query; 30 31 31 32 my $config = {}; … … 36 37 $config->{'nagios-server'}{'portal-url'} ||= $cgi_path =~ s{/cgi-bin/}{/}r . '/'; 37 38 $config->{'nagios-server'}{'status-cgi'} ||= "$cgi_path/status.cgi"; 39 $config->{'nagios-server'}{'stylesheets'} ||= $config->{'nagios-server'}{'portal-url'} =~ s{/?$}{/stylesheets}r; 38 40 $config->{'host-mapping'} ||= {}; 39 41 $config->{'color-downtime'} ||= {}; … … 111 113 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 112 114 <title>Nagios Velvice</title> 115 <link rel="stylesheet" type="text/css" href="$config->{'nagios-server'}{'stylesheets'}/velvice.cgi"> 113 116 </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>127 117 <body> 128 118 <h1>
Note: See TracChangeset
for help on using the changeset viewer.