From 3e02d5aff85babc3ffbfcf52313f2108e313aa23 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 13 Apr 2024 13:46:43 +0200 Subject: Adding upstream version 2.12.1. Signed-off-by: Daniel Baumann --- .../views/scripts/navigation/dashboard.phtml | 27 ++++++++ application/views/scripts/navigation/index.phtml | 78 ++++++++++++++++++++++ application/views/scripts/navigation/shared.phtml | 68 +++++++++++++++++++ 3 files changed, 173 insertions(+) create mode 100644 application/views/scripts/navigation/dashboard.phtml create mode 100644 application/views/scripts/navigation/index.phtml create mode 100644 application/views/scripts/navigation/shared.phtml (limited to 'application/views/scripts/navigation') diff --git a/application/views/scripts/navigation/dashboard.phtml b/application/views/scripts/navigation/dashboard.phtml new file mode 100644 index 0000000..f069882 --- /dev/null +++ b/application/views/scripts/navigation/dashboard.phtml @@ -0,0 +1,27 @@ + +
+ +
+ diff --git a/application/views/scripts/navigation/index.phtml b/application/views/scripts/navigation/index.phtml new file mode 100644 index 0000000..bf08562 --- /dev/null +++ b/application/views/scripts/navigation/index.phtml @@ -0,0 +1,78 @@ +compact): ?> +
+ tabs ?> +
+ sortBox ?> +
+ filterEditor ?> +
+ +
+ qlink( + $this->translate('Create a New Navigation Item') , + 'navigation/add', + null, + array( + 'class' => 'button-link', + 'data-base-target' => '_next', + 'icon' => 'plus', + 'title' => $this->translate('Create a new navigation item') + ) + ) ?> + +

translate('You did not create any navigation item yet.') ?>

+
+ + + + + + + + + + + + + + + + + + + + +
translate('Navigation') ?>translate('Type') ?>translate('Shared') ?>
+ qlink( + $item->name, + 'navigation/edit', + array( + 'name' => $item->name, + 'type' => $item->type + ), + array( + 'title' => sprintf($this->translate('Edit navigation item %s'), $item->name) + ) + ) ?> + + type && isset($types[$item->type]) + ? $this->escape($types[$item->type]) + : $this->escape($this->translate('Unknown')) ?> + + owner ? $this->translate('Yes') : $this->translate('No') ?> + + qlink( + '', + 'navigation/remove', + array( + 'name' => $item->name, + 'type' => $item->type + ), + array( + 'class' => 'action-link', + 'icon' => 'cancel', + 'title' => sprintf($this->translate('Remove navigation item %s'), $item->name) + ) + ) ?> +
+ diff --git a/application/views/scripts/navigation/shared.phtml b/application/views/scripts/navigation/shared.phtml new file mode 100644 index 0000000..e9e9164 --- /dev/null +++ b/application/views/scripts/navigation/shared.phtml @@ -0,0 +1,68 @@ +compact): ?> +
+ tabs; ?> +
+ sortBox ?> +
+
+ +
+ +

translate('There are currently no navigation items being shared'); ?>

+ + + + + + + + + + + + + + + parent): ?> + + + + + + + +
translate('Shared Navigation'); ?>translate('Type'); ?>translate('Owner'); ?>translate('Unshare'); ?>
qlink( + $item->name, + 'navigation/edit', + array( + 'name' => $item->name, + 'type' => $item->type, + 'owner' => $item->owner, + 'referrer' => 'shared' + ), + array( + 'title' => sprintf($this->translate('Edit shared navigation item %s'), $item->name) + ) + ); ?>type && isset($types[$item->type]) + ? $this->escape($types[$item->type]) + : $this->escape($this->translate('Unknown')); ?>escape($item->owner); ?>icon( + 'block', + sprintf( + $this->translate( + 'This is a child of the navigation item %1$s. You can' + . ' only unshare this item by unsharing %1$s' + ), + $item->parent + ) + ); ?>setDefault('name', $item->name) + ->setAction(Url::fromPath( + 'navigation/unshare', + array('type' => $item->type, 'owner' => $item->owner) + )); ?>
+ +
-- cgit v1.2.3