From 37c7952ec75990cae9defc2f6589c1d2655c22d2 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Fri, 18 Sep 2015 11:34:00 +0200 Subject: [PATCH] shared navigation overview: Do not allow to unshare childs individually refs #5600 --- application/views/scripts/navigation/shared.phtml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/application/views/scripts/navigation/shared.phtml b/application/views/scripts/navigation/shared.phtml index 0d7555020..a8bb69e13 100644 --- a/application/views/scripts/navigation/shared.phtml +++ b/application/views/scripts/navigation/shared.phtml @@ -33,7 +33,20 @@ ? $this->escape($types[$item->type]) : $this->escape($this->translate('Unknown')); ?> escape($item->owner); ?> + parent): ?> + 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 + ) + ); ?> + setDefault('name', $name); ?> +