[icinga-checkins] icinga.org: icingaweb2-module-director/feature/icinga1-config-12919: IndexController: Reformat tile config in view

git at icinga.org git at icinga.org
Wed Oct 19 13:17:43 CEST 2016


Module: icingaweb2-module-director
Branch: feature/icinga1-config-12919
Commit: 242edf2f8dfc42709674e185e666a084070ad66d
URL:    https://git.icinga.org/?p=icingaweb2-module-director.git;a=commit;h=242edf2f8dfc42709674e185e666a084070ad66d

Author: Markus Frosch <markus.frosch at icinga.com>
Date:   Wed Oct 19 10:50:56 2016 +0200

IndexController: Reformat tile config in view

For better readability

---

 application/views/scripts/index/index.phtml |  122 +++++++++++++++++++++++----
 1 file changed, 106 insertions(+), 16 deletions(-)

diff --git a/application/views/scripts/index/index.phtml b/application/views/scripts/index/index.phtml
index 6113bf6..c068d25 100644
--- a/application/views/scripts/index/index.phtml
+++ b/application/views/scripts/index/index.phtml
@@ -91,26 +91,116 @@ if ($this->migrationsForm) {
 
 $all = array(
     $this->translate('Define whatever you want to be monitored') => array(
-        array('host',     $this->translate('Host objects'), 'director/hosts', statSummary($this, 'host')),
-        array('services', $this->translate('Monitored Services'), 'director/services', statSummary($this, 'service')),
-        array('wrench',   $this->translate('Commands'), 'director/commands', statSummary($this, 'command')),
-        array('users',    $this->translate('Users / Contacts'), 'director/users', statSummary($this, 'user')),
-        array('megaphone', $this->translate('Notifications'), 'director/notifications', $this->translate('Schedule your notifications.') . ' ' . statSummary($this, 'notification')),
-        array('calendar', $this->translate('Timeperiods'), 'director/timeperiods', statSummary($this, 'timeperiod')),
+        array(
+            'host',
+            $this->translate('Host objects'),
+            'director/hosts',
+            statSummary($this, 'host')
+        ),
+        array(
+            'services',
+            $this->translate('Monitored Services'),
+            'director/services',
+            statSummary($this, 'service')
+        ),
+        array(
+            'wrench',
+            $this->translate('Commands'),
+            'director/commands',
+            statSummary($this, 'command')
+        ),
+        array(
+            'users',
+            $this->translate('Users / Contacts'),
+            'director/users',
+            statSummary($this, 'user')
+        ),
+        array(
+            'megaphone',
+            $this->translate('Notifications'),
+            'director/notifications',
+            $this->translate('Schedule your notifications.') . ' ' . statSummary($this, 'notification')
+        ),
+        array(
+            'calendar',
+            $this->translate('Timeperiods'),
+            'director/timeperiods',
+            statSummary($this, 'timeperiod')
+        ),
     ),
     $this->translate('Deploy configuration to your Icinga nodes') => array(
-        array('wrench',   $this->translate('Deployment'), 'director/config/deployments', $this->translate('Config deployment') . pendingDeployments($this), $this->undeployedActivities ? 'warning' : 'ok'),
-        array('book',   $this->translate('Activity Log'), 'director/config/activities', $this->translate('Wondering about what changed why? Track your changes!'), 'ok'),
-        array('lock-open-alt', $this->translate('Api users'), 'director/apiusers', statSummary($this, 'apiuser')),
-        array('cloud',    $this->translate('Endpoints'), 'director/endpoints', statSummary($this, 'endpoint') . ( $this->hasDeploymentEndpoint ? '' : '. ' . $this->translate('None could be used for deployments right now')), $this->hasDeploymentEndpoint ? '' : 'critical'),
-        array('globe',    $this->translate('Zones'), 'director/zones', statSummary($this, 'zone')),
+        array(
+            'wrench',
+            $this->translate('Deployment'),
+            'director/config/deployments',
+            $this->translate('Config deployment') . pendingDeployments($this),
+            $this->undeployedActivities ? 'warning' : 'ok'
+        ),
+        array(
+            'book',
+            $this->translate('Activity Log'),
+            'director/config/activities',
+            $this->translate('Wondering about what changed why? Track your changes!'),
+            'ok'
+        ),
+        array(
+            'lock-open-alt',
+            $this->translate('Api users'),
+            'director/apiusers',
+            statSummary($this, 'apiuser')
+        ),
+        array(
+            'cloud',
+            $this->translate('Endpoints'),
+            'director/endpoints',
+            statSummary($this, 'endpoint') .
+            (
+                $this->hasDeploymentEndpoint ? '' : '. ' .
+                $this->translate('None could be used for deployments right now')
+            ),
+            $this->hasDeploymentEndpoint ? '' : 'critical'
+        ),
+        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'), $this->importState),
-        array('flapping',     $this->translate('Synchronize'), 'director/list/syncrule', $this->translate('Define how imported data should be synchronized with Icinga'), $this->syncState),
-        array('clock',     $this->translate('Jobs'), 'director/jobs', $this->translate('Schedule and automate Import, Syncronization, Config Deployment, Housekeeping and more'), $this->jobState),
-        array('edit',         $this->translate('Define data fields'), 'director/data/fields', $this->translate('Data fields make sure that configuration fits your rules')),
-        array('sort-name-up', $this->translate('Provide data lists'), 'director/data/lists', $this->translate('Provide data lists to make life easier for your users')),
+        array(
+            'database',
+            $this->translate('Import data sources'),
+            'director/list/importsource',
+            $this->translate('Define and manage imports from various data sources'),
+            $this->importState
+        ),
+        array(
+            'flapping',
+            $this->translate('Synchronize'),
+            'director/list/syncrule',
+            $this->translate('Define how imported data should be synchronized with Icinga'),
+            $this->syncState
+        ),
+        array(
+            'clock',
+            $this->translate('Jobs'),
+            'director/jobs',
+            $this->translate('Schedule and automate Import, Syncronization, Config Deployment, Housekeeping and more'),
+            $this->jobState
+        ),
+        array(
+            'edit',
+            $this->translate('Define data fields'),
+            'director/data/fields',
+            $this->translate('Data fields make sure that configuration fits your rules')
+        ),
+        array(
+            'sort-name-up',
+            $this->translate('Provide data lists'),
+            'director/data/lists',
+            $this->translate('Provide data lists to make life easier for your users')
+        ),
     )
 );
 ?>



More information about the icinga-checkins mailing list