From e155e1514a361b2f58ac2e690ca4fb36b79eeb42 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Mon, 7 Sep 2015 11:07:55 +0200 Subject: [PATCH] monitoring/css: Rename prefix for background colors from bg-state to bg-color --- .../views/scripts/list/servicegrid.phtml | 2 +- modules/monitoring/public/css/colors.less | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/modules/monitoring/application/views/scripts/list/servicegrid.phtml b/modules/monitoring/application/views/scripts/list/servicegrid.phtml index 3c9078683..e458f230c 100644 --- a/modules/monitoring/application/views/scripts/list/servicegrid.phtml +++ b/modules/monitoring/application/views/scripts/list/servicegrid.phtml @@ -77,7 +77,7 @@ $hostFilter = '(host_name=' . implode('|host_name=', array_keys($pivotData)) . ' ), array( 'aria-describedby' => $ariaDescribedById, - 'class' => 'bg-state-' . Service::getStateText($service->service_state) . ($service->service_handled ? ' handled' : ''), + 'class' => 'bg-color-' . Service::getStateText($service->service_state) . ($service->service_handled ? ' handled' : ''), 'title' => $this->escape($service->service_output), 'aria-label' => sprintf( $this->translate('Show detailed information for service %s on host %s'), diff --git a/modules/monitoring/public/css/colors.less b/modules/monitoring/public/css/colors.less index a8b314426..7b931d166 100644 --- a/modules/monitoring/public/css/colors.less +++ b/modules/monitoring/public/css/colors.less @@ -1,11 +1,11 @@ /*! Icinga Web 2 | (c) 2013-2015 Icinga Development Team | GPLv2+ */ -.bg-state-ok, -.bg-state-up { +.bg-color-ok, +.bg-color-up { background-color: @colorOk; } -.bg-state-warning { +.bg-color-warning { background-color: @colorWarning; &.handled { @@ -13,8 +13,8 @@ } } -.bg-state-critical, -.bg-state-down { +.bg-color-critical, +.bg-color-down { background-color: @colorCritical; &.handled { @@ -22,7 +22,7 @@ } } -.bg-state-unreachable { +.bg-color-unreachable { background-color: @colorUnreachable; &.handled { @@ -30,7 +30,7 @@ } } -.bg-state-unknown { +.bg-color-unknown { background-color: @colorUnknown; &.handled { @@ -38,7 +38,7 @@ } } -.bg-state-pending { +.bg-color-pending { background-color: @colorPending; }