summaryrefslogtreecommitdiffstats
path: root/configuration.php
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 12:46:47 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 12:46:47 +0000
commit4ada86876033fa171e2896d7e3d3c5645d8062db (patch)
treef0d1fee61877df200ccfb1c0af58a39cd551fb46 /configuration.php
parentInitial commit. (diff)
downloadicingaweb2-module-reporting-6f6e52922af9d5e1985f6f512f8f7f5144b36ae1.tar.xz
icingaweb2-module-reporting-6f6e52922af9d5e1985f6f512f8f7f5144b36ae1.zip
Adding upstream version 0.10.0.upstream/0.10.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--configuration.php52
1 files changed, 52 insertions, 0 deletions
diff --git a/configuration.php b/configuration.php
new file mode 100644
index 0000000..bb5b2e6
--- /dev/null
+++ b/configuration.php
@@ -0,0 +1,52 @@
+<?php
+// Icinga Reporting | (c) 2018 Icinga GmbH | GPLv2
+
+namespace Icinga\Module\Reporting {
+
+ use Icinga\Application\Version;
+
+ /** @var \Icinga\Application\Modules\Module $this */
+
+ $this->provideCssFile('system-report.css');
+
+ if (version_compare(Version::VERSION, '2.9.0', '<')) {
+ $this->provideJsFile('vendor/flatpickr.min.js');
+ $this->provideCssFile('vendor/flatpickr.min.css');
+ }
+
+ $this->menuSection(N_('Reporting'))->add(N_('Reports'), array(
+ 'url' => 'reporting/reports',
+ ));
+
+ $this->provideConfigTab('backend', array(
+ 'title' => $this->translate('Configure the database backend'),
+ 'label' => $this->translate('Backend'),
+ 'url' => 'config/backend'
+ ));
+
+ $this->provideConfigTab('mail', array(
+ 'title' => $this->translate('Configure mail'),
+ 'label' => $this->translate('Mail'),
+ 'url' => 'config/mail'
+ ));
+
+ $this->providePermission(
+ 'reporting/reports',
+ $this->translate('Allow managing reports')
+ );
+
+ $this->providePermission(
+ 'reporting/schedules',
+ $this->translate('Allow managing schedules')
+ );
+
+ $this->providePermission(
+ 'reporting/templates',
+ $this->translate('Allow managing templates')
+ );
+
+ $this->providePermission(
+ 'reporting/timeframes',
+ $this->translate('Allow managing timeframes')
+ );
+}