summaryrefslogtreecommitdiffstats
path: root/configuration.php
diff options
context:
space:
mode:
Diffstat (limited to 'configuration.php')
-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')
+ );
+}