2014-02-18 19:16:03 +01:00
|
|
|
<div class="controls">
|
2015-06-18 13:17:54 +02:00
|
|
|
<?php if (! $this->compact): ?>
|
2014-02-18 19:16:03 +01:00
|
|
|
<?= $this->tabs ?>
|
2015-06-18 13:17:54 +02:00
|
|
|
<?php endif ?>
|
2014-02-18 19:16:03 +01:00
|
|
|
</div>
|
2014-06-05 15:20:54 +02:00
|
|
|
<?php if ($this->dashboard): ?>
|
|
|
|
<div class="dashboard content">
|
|
|
|
<?= $this->dashboard ?>
|
|
|
|
</div>
|
|
|
|
<?php else: ?>
|
|
|
|
<div class="content">
|
2014-08-22 15:39:35 +02:00
|
|
|
<h1><?= $this->escape($this->translate('Welcome to Icinga Web!')) ?></h1>
|
2014-11-18 16:28:04 +01:00
|
|
|
<p>
|
2015-08-04 15:08:30 +02:00
|
|
|
<?php if (! $this->hasPermission('config/modules')) {
|
|
|
|
echo $this->escape($this->translate(
|
|
|
|
'Currently there is no dashlet available. Please contact the administrator.'
|
|
|
|
));
|
|
|
|
} else {
|
|
|
|
printf(
|
2014-11-18 16:28:04 +01:00
|
|
|
$this->escape($this->translate('Currently there is no dashlet available. This might change once you enabled some of the available %s.')),
|
|
|
|
$this->qlink($this->translate('modules'), 'config/modules')
|
2015-08-04 15:08:30 +02:00
|
|
|
);
|
|
|
|
} ?>
|
2014-11-18 16:28:04 +01:00
|
|
|
</p>
|
2014-06-05 15:20:54 +02:00
|
|
|
</div>
|
2015-06-18 13:17:54 +02:00
|
|
|
<?php endif ?>
|