mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
user navigation overview: Display the type of a navigation item
refs #5600
This commit is contained in:
parent
4c1dd2ed36
commit
47257d74ff
@ -66,6 +66,7 @@ class NavigationController extends Controller
|
||||
$userConfig = $user->loadNavigationConfig();
|
||||
$sharedConfig = Config::app('navigation');
|
||||
|
||||
$this->view->types = $this->listItemTypes();
|
||||
$this->view->items = array_merge(
|
||||
$sharedConfig->select()->where('owner', $user->getUsername())->fetchAll(),
|
||||
iterator_to_array($userConfig)
|
||||
|
@ -10,6 +10,7 @@
|
||||
<table class="action alternating">
|
||||
<thead>
|
||||
<th><?= $this->translate('Navigation'); ?></th>
|
||||
<th style="width: 10em"><?= $this->translate('Type'); ?></th>
|
||||
<th style="width: 5em"><?= $this->translate('Remove'); ?></th>
|
||||
</thead>
|
||||
<tbody>
|
||||
@ -23,6 +24,9 @@
|
||||
'title' => sprintf($this->translate('Edit navigation item %s'), $name)
|
||||
)
|
||||
); ?></td>
|
||||
<td><?= $item->type && isset($types[$item->type])
|
||||
? $this->escape($types[$item->type])
|
||||
: $this->escape($this->translate('Unknown')); ?></td>
|
||||
<td><?= $this->qlink(
|
||||
'',
|
||||
'navigation/remove',
|
||||
|
Loading…
x
Reference in New Issue
Block a user