welcome: first attempts to make it look better

This commit is contained in:
Thomas Gelf 2015-07-30 11:40:13 +02:00
parent 3d205724c3
commit 87ddaf19d8
2 changed files with 22 additions and 1 deletions

View File

@ -7,5 +7,25 @@
<?php if ($this->errorMessage): ?>
<p class="error"><?= $this->errorMessage ?></p>
<?php endif ?>
Nothing to see here yet. We will point you to the most common tasks later on.
<?php
$actions = array(
array('cloud', $this->translate('Monitoring Nodes'), 'director/commands'),
array('host', $this->translate('Host objecs'), 'director/hosts'),
array('services', $this->translate('Monitored Services'), 'director/services'),
array('users', $this->translate('Users / Contacts'), 'director/users'),
array('chat', $this->translate('Alarms and notifications'), 'director/notificatios'),
array('database', $this->translate('Sync / Import'), 'director/list/importsource'),
array('wrench', $this->translate('Configuration'), 'director/list/generatedconfig'),
);
?>
<ul class="main-actions">
<?php foreach ($actions as $a): ?>
<li>
<a href="<?= $this->url($a[2]) ?>">
<?= $this->icon($a[0]) ?>
<?= $this->escape($a[1]) ?>
</a>
</li>
<?php endforeach ?>
</ul>
</div>

View File

@ -25,6 +25,7 @@ $section = $this->menuSection(
$this->translate('Icinga Director')
)->setIcon('cubes');
$section->add($this->translate('Overview'))->setUrl('director/welcome')->setPriority(20);
$section->add($this->translate('Global'))->setUrl('director/commands');
$section->add($this->translate('Hosts'))->setUrl('director/hosts');
$section->add($this->translate('Fields'))->setUrl('director/field/host')->setPriority(903);