[icinga-checkins] icinga.org: icingaweb2-module-director/master: index: add state colors

git at icinga.org git at icinga.org
Sun Feb 28 17:12:41 CET 2016


Module: icingaweb2-module-director
Branch: master
Commit: 8b3b1528c5372cb6202db3eb7ad8dd523612d7b6
URL:    https://git.icinga.org/?p=icingaweb2-module-director.git;a=commit;h=8b3b1528c5372cb6202db3eb7ad8dd523612d7b6

Author: Thomas Gelf <thomas at gelf.net>
Date:   Sun Feb 28 16:43:45 2016 +0100

index: add state colors

---

 application/views/scripts/index/actions.phtml |    6 +++++-
 application/views/scripts/index/index.phtml   |    9 ++++++---
 2 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/application/views/scripts/index/actions.phtml b/application/views/scripts/index/actions.phtml
index c8a27bf..a59992a 100644
--- a/application/views/scripts/index/actions.phtml
+++ b/application/views/scripts/index/actions.phtml
@@ -2,7 +2,11 @@
 <ul class="main-actions" data-base-target="_next">
 <?php foreach ($actions as $a): ?>
 <li>
-  <a href="<?= $this->url($a[2]) ?>">
+  <a<?php
+if (array_key_exists(4, $a)) {
+  echo ' class="state-' . $a[4] . '"';
+}
+?> href="<?= $this->url($a[2]) ?>">
   <?= $this->icon($a[0]) ?>
   <?= $this->escape($a[1]) ?>
   <p><?= $a[3] ?></p>
diff --git a/application/views/scripts/index/index.phtml b/application/views/scripts/index/index.phtml
index 835b57c..dbe6f9c 100644
--- a/application/views/scripts/index/index.phtml
+++ b/application/views/scripts/index/index.phtml
@@ -92,14 +92,17 @@ $all = array(
     ),
     $this->translate('Alert your users') => array(
         array('users',    $this->translate('Users / Contacts'), 'director/users', statSummary($this, 'user')),
-        array('calendar', $this->translate('Timeperiods'), 'director/timeperiods', statSummary($this, 'timeperiod')),
-        array('megaphone', $this->translate('Notifications'), '#', $this->translate('Schedule your notifications')),
+        array('calendar', $this->translate('Timeperiods'), 'director/timeperiods', statSummary($this, 'timeperiod'), 'pending'),
+        array('megaphone', $this->translate('Notifications'), 'director/notifications', $this->translate('Schedule your notifications'), 'pending'),
+        array('book',   $this->translate('Audit log'), 'director/config/activities', $this->translate('Wondering about what changed why? Track you changes!'), 'ok'),
     ),
     $this->translate('Deploy configuration to your Icinga nodes') => array(
         array('wrench',   $this->translate('Deployment'), 'director/list/deploymentlog', $this->translate('Manage deployments, access audit log and history') . pendingDeployments($this)),
         array('globe',    $this->translate('Zones'), 'director/zones', statSummary($this, 'zone')),
         array('cloud',    $this->translate('Endpoints'), 'director/endpoints', statSummary($this, 'endpoint')),
         array('lock-open-alt', $this->translate('Api users'), 'director/apiusers', statSummary($this, 'apiuser')),
+        array('cloud',    $this->translate('Endpoints'), 'director/endpoints', statSummary($this, 'endpoint')),
+        array('globe',    $this->translate('Zones'), 'director/zones', statSummary($this, 'zone')),
     ),
     $this->translate('Do more with your data') => array(
         array('database',     $this->translate('Import data sources'), 'director/list/importsource', $this->translate('Define and manage imports from various data sources')),
@@ -115,7 +118,7 @@ $all = array(
     'index/actions.phtml',
     array(
         'actions' => $actions,
-        'title'   => $title
+        'title'   => $title,
     )
 ) ?>
 <?php endforeach ?>



More information about the icinga-checkins mailing list