2016-12-14 15:00:51 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Icinga\Module\Director\Dashboard\Dashlet;
|
|
|
|
|
|
|
|
class NotificationTemplateDashlet extends Dashlet
|
|
|
|
{
|
2017-07-28 22:42:16 +02:00
|
|
|
protected $icon = 'cubes';
|
2016-12-14 15:00:51 +01:00
|
|
|
|
|
|
|
protected $requiredStats = array('notification');
|
|
|
|
|
|
|
|
public function getTitle()
|
|
|
|
{
|
|
|
|
return $this->translate('Notification templates');
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getSummary()
|
|
|
|
{
|
|
|
|
return $this->translate('Provide templates for your notifications.')
|
|
|
|
. ' ' . $this->getTemplateSummaryText('notification');
|
|
|
|
}
|
|
|
|
|
|
|
|
public function listRequiredPermissions()
|
|
|
|
{
|
|
|
|
return array('director/admin');
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getUrl()
|
|
|
|
{
|
|
|
|
return 'director/notifications/templates';
|
|
|
|
}
|
|
|
|
}
|