diff options
Diffstat (limited to 'library/Director/Dashboard/Dashlet/UserTemplateDashlet.php')
-rw-r--r-- | library/Director/Dashboard/Dashlet/UserTemplateDashlet.php | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/library/Director/Dashboard/Dashlet/UserTemplateDashlet.php b/library/Director/Dashboard/Dashlet/UserTemplateDashlet.php new file mode 100644 index 0000000..291ab05 --- /dev/null +++ b/library/Director/Dashboard/Dashlet/UserTemplateDashlet.php @@ -0,0 +1,31 @@ +<?php + +namespace Icinga\Module\Director\Dashboard\Dashlet; + +class UserTemplateDashlet extends Dashlet +{ + protected $icon = 'cubes'; + + protected $requiredStats = array('user'); + + public function getTitle() + { + return $this->translate('User Templates'); + } + + public function getSummary() + { + return $this->translate('Provide templates for your User objects.') + . ' ' . $this->getTemplateSummaryText('user'); + } + + public function listRequiredPermissions() + { + return array('director/admin'); + } + + public function getUrl() + { + return 'director/users/templates'; + } +} |