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 --- application/views/scripts/dashboard/error.phtml | 13 ++++ application/views/scripts/dashboard/index.phtml | 26 +++++++ .../views/scripts/dashboard/new-dashlet.phtml | 6 ++ .../views/scripts/dashboard/remove-dashlet.phtml | 6 ++ .../views/scripts/dashboard/remove-pane.phtml | 6 ++ .../views/scripts/dashboard/rename-pane.phtml | 6 ++ application/views/scripts/dashboard/settings.phtml | 91 ++++++++++++++++++++++ .../views/scripts/dashboard/update-dashlet.phtml | 6 ++ 8 files changed, 160 insertions(+) create mode 100644 application/views/scripts/dashboard/error.phtml create mode 100644 application/views/scripts/dashboard/index.phtml create mode 100644 application/views/scripts/dashboard/new-dashlet.phtml create mode 100644 application/views/scripts/dashboard/remove-dashlet.phtml create mode 100644 application/views/scripts/dashboard/remove-pane.phtml create mode 100644 application/views/scripts/dashboard/rename-pane.phtml create mode 100644 application/views/scripts/dashboard/settings.phtml create mode 100644 application/views/scripts/dashboard/update-dashlet.phtml (limited to 'application/views/scripts/dashboard') diff --git a/application/views/scripts/dashboard/error.phtml b/application/views/scripts/dashboard/error.phtml new file mode 100644 index 0000000..9396b49 --- /dev/null +++ b/application/views/scripts/dashboard/error.phtml @@ -0,0 +1,13 @@ +
+

translate('Could not save dashboard'); ?>

+

+ translate('Please copy the following dashboard snippet to '); ?> + config->getConfigFile(); ?>;. +
+ translate('Make sure that the webserver can write to this file.'); ?> +

+
config; ?>
+
+

translate('Error details'); ?>

+

error->getMessage(); ?>

+
\ No newline at end of file diff --git a/application/views/scripts/dashboard/index.phtml b/application/views/scripts/dashboard/index.phtml new file mode 100644 index 0000000..1d56114 --- /dev/null +++ b/application/views/scripts/dashboard/index.phtml @@ -0,0 +1,26 @@ +
+compact): ?> +tabs ?> + +
+dashboard): ?> +
+ dashboard ?> +
+ +
+

escape($this->translate('Welcome to Icinga Web!')) ?>

+

+ hasPermission('config/modules')) { + echo $this->escape($this->translate( + 'Currently there is no dashlet available. Please contact the administrator.' + )); + } else { + printf( + $this->escape($this->translate('Currently there is no dashlet available. This might change once you enabled some of the available %s.')), + $this->qlink($this->translate('modules'), 'config/modules') + ); + } ?> +

+
+ diff --git a/application/views/scripts/dashboard/new-dashlet.phtml b/application/views/scripts/dashboard/new-dashlet.phtml new file mode 100644 index 0000000..b265a25 --- /dev/null +++ b/application/views/scripts/dashboard/new-dashlet.phtml @@ -0,0 +1,6 @@ +
+ tabs ?> +
+
+ form; ?> +
\ No newline at end of file diff --git a/application/views/scripts/dashboard/remove-dashlet.phtml b/application/views/scripts/dashboard/remove-dashlet.phtml new file mode 100644 index 0000000..b265a25 --- /dev/null +++ b/application/views/scripts/dashboard/remove-dashlet.phtml @@ -0,0 +1,6 @@ +
+ tabs ?> +
+
+ form; ?> +
\ No newline at end of file diff --git a/application/views/scripts/dashboard/remove-pane.phtml b/application/views/scripts/dashboard/remove-pane.phtml new file mode 100644 index 0000000..b265a25 --- /dev/null +++ b/application/views/scripts/dashboard/remove-pane.phtml @@ -0,0 +1,6 @@ +
+ tabs ?> +
+
+ form; ?> +
\ No newline at end of file diff --git a/application/views/scripts/dashboard/rename-pane.phtml b/application/views/scripts/dashboard/rename-pane.phtml new file mode 100644 index 0000000..b265a25 --- /dev/null +++ b/application/views/scripts/dashboard/rename-pane.phtml @@ -0,0 +1,6 @@ +
+ tabs ?> +
+
+ form; ?> +
\ No newline at end of file diff --git a/application/views/scripts/dashboard/settings.phtml b/application/views/scripts/dashboard/settings.phtml new file mode 100644 index 0000000..52d4f14 --- /dev/null +++ b/application/views/scripts/dashboard/settings.phtml @@ -0,0 +1,91 @@ +
+ tabs ?> +
+
+

+ + + + + + + + + + + dashboard->getPanes() as $pane): ?> + getDisabled()) continue; ?> + + + + + getDashlets(); ?> + + + + + + + getDisabled()) continue; ?> + + + + + + + + + +
+ + + +  
+ isUserWidget()): ?> + qlink( + $pane->getName(), + 'dashboard/rename-pane', + array('pane' => $pane->getName()), + array('title' => sprintf($this->translate('Edit pane %s'), $pane->getName())) + ) ?> + + escape($pane->getName()) ?> + + + qlink( + '', + 'dashboard/remove-pane', + array('pane' => $pane->getName()), + array( + 'icon' => 'trash', + 'title' => sprintf($this->translate('Remove pane %s'), $pane->getName()) + ) + ); ?> +
+ translate('No dashlets added to dashboard') ?>. +
+ qlink( + $dashlet->getTitle(), + 'dashboard/update-dashlet', + array('pane' => $pane->getName(), 'dashlet' => $dashlet->getName()), + array('title' => sprintf($this->translate('Edit dashlet %s'), $dashlet->getTitle())) + ); ?> + + qlink( + $dashlet->getUrl()->getRelativeUrl(), + $dashlet->getUrl()->getRelativeUrl(), + null, + array('title' => sprintf($this->translate('Show dashlet %s'), $dashlet->getTitle())) + ); ?> + + qlink( + '', + 'dashboard/remove-dashlet', + array('pane' => $pane->getName(), 'dashlet' => $dashlet->getName()), + array( + 'icon' => 'trash', + 'title' => sprintf($this->translate('Remove dashlet %s from pane %s'), $dashlet->getTitle(), $pane->getTitle()) + ) + ); ?> +
+
diff --git a/application/views/scripts/dashboard/update-dashlet.phtml b/application/views/scripts/dashboard/update-dashlet.phtml new file mode 100644 index 0000000..b265a25 --- /dev/null +++ b/application/views/scripts/dashboard/update-dashlet.phtml @@ -0,0 +1,6 @@ +
+ tabs ?> +
+
+ form; ?> +
\ No newline at end of file -- cgit v1.2.3