diff options
Diffstat (limited to 'library/Director/Dashboard/Dashlet/InfrastructureDashlet.php')
-rw-r--r-- | library/Director/Dashboard/Dashlet/InfrastructureDashlet.php | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/library/Director/Dashboard/Dashlet/InfrastructureDashlet.php b/library/Director/Dashboard/Dashlet/InfrastructureDashlet.php new file mode 100644 index 0000000..328df72 --- /dev/null +++ b/library/Director/Dashboard/Dashlet/InfrastructureDashlet.php @@ -0,0 +1,30 @@ +<?php + +namespace Icinga\Module\Director\Dashboard\Dashlet; + +class InfrastructureDashlet extends Dashlet +{ + protected $icon = 'cloud'; + + public function getTitle() + { + return $this->translate('Icinga Infrastructure'); + } + + public function getSummary() + { + return $this->translate( + 'Manage your Icinga 2 infrastructure: Masters, Zones, Satellites and more' + ); + } + + public function getUrl() + { + return 'director/dashboard?name=infrastructure'; + } + + public function listRequiredPermissions() + { + return array('director/admin'); + } +} |