Debian Codegraph @

configuration.php

raw
1 <?php
2 /* Copyright (C) 2017 Icinga Development Team <[email protected]> */
3
4 /** @var \Icinga\Application\Modules\Module $this */
5
6 $this->providePermission('toplevelview/edit', $this->translate('Allow the user to edit Top Level Views'));
7
8 $this->provideRestriction(
9 'toplevelview/filter/edit',
10 $this->translate('Restrict edit rights to Views that match the filter (comma-separated values)')
11 );
12
13 $this->provideRestriction(
14 'toplevelview/filter/views',
15 $this->translate('Restrict access to Views that match the filter (comma-separated values)')
16 );
17
18 /** @var \Icinga\Web\Navigation\NavigationItem $section */
19 $section = $this->menuSection('toplevelview');
20 $section
21 ->setLabel('Top Level View')
22 ->setUrl('toplevelview')
23 ->setIcon('sitemap')
24 ->setPriority(50);
25
26 $this->provideJsFile('vendor/codemirror/codemirror.js');
27 $this->provideJsFile('vendor/codemirror/mode/yaml.js');
28 $this->provideJsFile('vendor/codemirror/addon/dialog/dialog.js');
29 $this->provideJsFile('vendor/codemirror/addon/search/searchcursor.js');
30 $this->provideJsFile('vendor/codemirror/addon/search/search.js');
31 $this->provideJsFile('vendor/codemirror/addon/search/matchesonscrollbar.js');
32 $this->provideJsFile('vendor/codemirror/addon/search/jump-to-line.js');
33 $this->provideJsFile('vendor/codemirror/addon/fold/foldcode.js');
34 $this->provideJsFile('vendor/codemirror/addon/fold/foldgutter.js');
35 $this->provideJsFile('vendor/codemirror/addon/fold/indent-fold.js');
36
37 $this->provideCssFile('vendor/codemirror/codemirror.css');
38 $this->provideCssFile('vendor/codemirror/addon/dialog/dialog.css');
39 $this->provideCssFile('vendor/codemirror/addon/search/matchesonscrollbar.css');
40 $this->provideCssFile('vendor/codemirror/addon/fold/foldgutter.css');