shared navigation overview: Display the type of a navigation item

refs #5600
This commit is contained in:
Johannes Meyer 2015-09-16 15:37:56 +02:00
parent 54d08f99e8
commit 99502a77e0
2 changed files with 5 additions and 0 deletions

View File

@ -89,6 +89,7 @@ class NavigationController extends Controller
{
$this->assertPermission('config/application/navigation');
$this->view->items = Config::app('navigation');
$this->view->types = $this->listItemTypes();
$removeForm = new Form();
$removeForm->setUidDisabled();

View File

@ -10,6 +10,7 @@
<table class="action alternating">
<thead>
<th><?= $this->translate('Shared Navigation'); ?></th>
<th style="width: 10em"><?= $this->translate('Type'); ?></th>
<th style="width: 10em"><?= $this->translate('Owner'); ?></th>
<th style="width: 5em"><?= $this->translate('Unshare'); ?></th>
</thead>
@ -24,6 +25,9 @@
'title' => sprintf($this->translate('Edit shared 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->escape($item->owner); ?></td>
<td data-base-target="_self"><?= $removeForm->setDefault('name', $name); ?></td>
</tr>