From a1da5f5558b29a381f1473cb77d2b6a9168a922a Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Sun, 27 Sep 2015 12:42:54 +0200 Subject: [PATCH] monitoring/CSS: Fix state badges CSS classes refs #5543 --- .../library/Monitoring/Web/Widget/StateBadges.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/monitoring/library/Monitoring/Web/Widget/StateBadges.php b/modules/monitoring/library/Monitoring/Web/Widget/StateBadges.php index 59d699e112..9c5d444a1e 100644 --- a/modules/monitoring/library/Monitoring/Web/Widget/StateBadges.php +++ b/modules/monitoring/library/Monitoring/Web/Widget/StateBadges.php @@ -76,9 +76,9 @@ public function createBadge($state, Navigation $badges) if ($this->has($state)) { $badge = $this->get($state); $badges->addItem(array( - 'class' => static::STATE_OK, - 'label' => $badge->count, - 'url' => $this->url + 'attributes' => array('class' => 'badge ' . $state), + 'label' => $badge->count, + 'url' => $this->url )); } return $this;