mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-29 16:54:06 +02:00
index: add state colors
This commit is contained in:
parent
6a44ed5616
commit
8b3b1528c5
@ -2,7 +2,11 @@
|
|||||||
<ul class="main-actions" data-base-target="_next">
|
<ul class="main-actions" data-base-target="_next">
|
||||||
<?php foreach ($actions as $a): ?>
|
<?php foreach ($actions as $a): ?>
|
||||||
<li>
|
<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->icon($a[0]) ?>
|
||||||
<?= $this->escape($a[1]) ?>
|
<?= $this->escape($a[1]) ?>
|
||||||
<p><?= $a[3] ?></p>
|
<p><?= $a[3] ?></p>
|
||||||
|
@ -92,14 +92,17 @@ $all = array(
|
|||||||
),
|
),
|
||||||
$this->translate('Alert your users') => array(
|
$this->translate('Alert your users') => array(
|
||||||
array('users', $this->translate('Users / Contacts'), 'director/users', statSummary($this, 'user')),
|
array('users', $this->translate('Users / Contacts'), 'director/users', statSummary($this, 'user')),
|
||||||
array('calendar', $this->translate('Timeperiods'), 'director/timeperiods', statSummary($this, 'timeperiod')),
|
array('calendar', $this->translate('Timeperiods'), 'director/timeperiods', statSummary($this, 'timeperiod'), 'pending'),
|
||||||
array('megaphone', $this->translate('Notifications'), '#', $this->translate('Schedule your notifications')),
|
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(
|
$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('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('globe', $this->translate('Zones'), 'director/zones', statSummary($this, 'zone')),
|
||||||
array('cloud', $this->translate('Endpoints'), 'director/endpoints', statSummary($this, 'endpoint')),
|
array('cloud', $this->translate('Endpoints'), 'director/endpoints', statSummary($this, 'endpoint')),
|
||||||
array('lock-open-alt', $this->translate('Api users'), 'director/apiusers', statSummary($this, 'apiuser')),
|
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(
|
$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')),
|
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',
|
'index/actions.phtml',
|
||||||
array(
|
array(
|
||||||
'actions' => $actions,
|
'actions' => $actions,
|
||||||
'title' => $title
|
'title' => $title,
|
||||||
)
|
)
|
||||||
) ?>
|
) ?>
|
||||||
<?php endforeach ?>
|
<?php endforeach ?>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user