blob: c72d5a6b7cb8d614a363c192d4dadd9a87fac995 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
<?php
/** @var \Icinga\Module\Toplevelview\ViewConfig $view */
?>
<div class="action-links">
<?php
if (! $this->compact) {
if ($this->hasPermission('toplevelview/edit')) {
echo $this->qlink(
$this->translate('Edit'),
'toplevelview/edit',
array('name' => $view->getName()),
array(
'class' => 'action-link',
'icon' => 'edit',
'data-base-target' => '_next'
)
);
echo $this->qlink(
$this->translate('Clone'),
'toplevelview/edit/clone',
array('name' => $view->getName()),
array(
'class' => 'action-link',
'icon' => 'rewind',
'data-base-target' => '_next'
)
);
} else {
echo $this->qlink(
$this->translate('Source'),
'toplevelview/show/source',
array('name' => $view->getName())
);
}
}
?>
<?php if ($view->hasBeenLoadedFromSession()): ?>
<div class="warning-note">
<?= $this->translate('This config is only stored in your session!'
. ' Make sure to save it to disk once your work is complete!') ?>
</div>
<?php endif; ?>
</div>
|