diff --git a/modules/monitoring/application/views/scripts/list/components/hostssummary.phtml b/modules/monitoring/application/views/scripts/list/components/hostssummary.phtml index c455d26ae..2e19ff352 100644 --- a/modules/monitoring/application/views/scripts/list/components/hostssummary.phtml +++ b/modules/monitoring/application/views/scripts/list/components/hostssummary.phtml @@ -6,9 +6,9 @@ $selfUrl = 'monitoring/list/hosts'; $currentUrl = Url::fromRequest()->getRelativeUrl(); ?> -

compact ? ' data-base-target="col1"' : '' ?>> +

compact ? ' data-base-target="col1"' : '' ?>> qlink(sprintf($this->translate('%s hosts:'), $this->stats->hosts_total), $selfUrl); ?> - + stats->hosts_up): ?> qlink( @@ -80,4 +80,5 @@ $currentUrl = Url::fromRequest()->getRelativeUrl(); ) ?> -

+ + diff --git a/modules/monitoring/application/views/scripts/list/components/servicesummary.phtml b/modules/monitoring/application/views/scripts/list/components/servicesummary.phtml index 8533c80c7..dab7071a1 100644 --- a/modules/monitoring/application/views/scripts/list/components/servicesummary.phtml +++ b/modules/monitoring/application/views/scripts/list/components/servicesummary.phtml @@ -4,8 +4,9 @@ use Icinga\Web\Url; $selfUrl = 'monitoring/list/services'; $currentUrl = Url::fromRequest()->getRelativeUrl(); -?>

compact ? ' data-base-target="col1"' : '' ?>> +?>

compact ? ' data-base-target="col1"' : '' ?>> qlink(sprintf($this->translate('%s services:'), $this->stats->services_total), $selfUrl) ?> + stats->services_ok): ?> qlink( $this->stats->services_ok, @@ -79,5 +80,6 @@ foreach (array(2 => 'critical', 3 => 'unknown', 1 => 'warning') as $stateId => $ array('title' => sprintf($this->translate('Services with state %s'), strtoupper($this->translate('pending')))) ) ?> -

+ + diff --git a/modules/monitoring/application/views/scripts/show/components/hostservicesummary.phtml b/modules/monitoring/application/views/scripts/show/components/hostservicesummary.phtml index 26a0da082..f42e70278 100644 --- a/modules/monitoring/application/views/scripts/show/components/hostservicesummary.phtml +++ b/modules/monitoring/application/views/scripts/show/components/hostservicesummary.phtml @@ -5,13 +5,13 @@ $selfUrl = Url::fromPath('monitoring/show/services', array('host' => $this->obje $currentUrl = Url::fromRequest()->without('limit')->getRelativeUrl(); ?> -

compact ? ' data-base-target="col1"' : '' ?>> +

compact ? ' data-base-target="col1"' : '' ?>> stats->services_total > 0): ?> qlink(sprintf($this->translate('%s configured services:'), $object->stats->services_total), $selfUrl) ?> translate('No services configured on this host'); ?> - + stats->services_ok > 0): ?> qlink( $object->stats->services_ok, @@ -84,5 +84,6 @@ foreach (array(2 => 'critical', 3 => 'unknown', 1 => 'warning') as $stateId => $ array('title' => sprintf($this->translate('Services with state %s'), strtoupper($this->translate('pending')))) ) ?> -

+ + diff --git a/modules/monitoring/public/css/module.less b/modules/monitoring/public/css/module.less index 030eba7af..84b3ba899 100644 --- a/modules/monitoring/public/css/module.less +++ b/modules/monitoring/public/css/module.less @@ -92,36 +92,36 @@ div.contacts div.notification-periods { margin-top: 0.5em; } -h3.tinystatesummary { - line-height: 2em; - font-size: 0.95em; - margin-right: 1em; - border-bottom: 2px solid @colorPetrol; +h1.tinystatesummary .badges { + display: inline-block; + margin-bottom: 4px; + margin-left: 1em; } -h3.tinystatesummary a { - color: inherit; - text-decoration: none; - padding: 1px 3px; +h1.tinystatesummary .state { + border-radius: 0.3em; } -h3.tinystatesummary a:hover { - text-decoration: underline; +h1.tinystatesummary .state > a { + color: white; + font-size: 0.7em; + padding: 2px 5px; +} + +h1.tinystatesummary .state.handled a { } /* State badges */ span.state { - font-size: 1em; - font-weight: 700; + font-weight: bold; color: white; font-weight: bold; padding: 1px 2px; margin-right: 5px; - } span.state.active { - border: 2px solid white; + border: 2px solid #555; } span.state span.state {