summaryrefslogtreecommitdiffstats
path: root/configuration.php
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 13:28:59 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 13:28:59 +0000
commit978a1651bac3faf5e91ddba327bf39aeb6a4cb63 (patch)
treef0d1fee61877df200ccfb1c0af58a39cd551fb46 /configuration.php
parentInitial commit. (diff)
downloadicingaweb2-module-reporting-978a1651bac3faf5e91ddba327bf39aeb6a4cb63.tar.xz
icingaweb2-module-reporting-978a1651bac3faf5e91ddba327bf39aeb6a4cb63.zip
Adding upstream version 0.10.0.upstream/0.10.0
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')
+ );
+}