mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-07 21:05:18 +02:00
shared navigation overview: Do not allow to unshare childs individually
refs #5600
This commit is contained in:
parent
5eb7267b43
commit
37c7952ec7
@ -33,7 +33,20 @@
|
||||
? $this->escape($types[$item->type])
|
||||
: $this->escape($this->translate('Unknown')); ?></td>
|
||||
<td><?= $this->escape($item->owner); ?></td>
|
||||
<?php if ($item->parent): ?>
|
||||
<td><?= $this->icon(
|
||||
'block',
|
||||
sprintf(
|
||||
$this->translate(
|
||||
'This is a child of the navigation item %s. You can'
|
||||
. ' only unshare this item by unsharing its parent'
|
||||
),
|
||||
$item->parent
|
||||
)
|
||||
); ?></td>
|
||||
<?php else: ?>
|
||||
<td data-base-target="_self"><?= $removeForm->setDefault('name', $name); ?></td>
|
||||
<?php endif ?>
|
||||
</tr>
|
||||
<?php endforeach ?>
|
||||
</tbody>
|
||||
|
Loading…
x
Reference in New Issue
Block a user