mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-26 23:34:10 +02:00
Dependencies: add usage overview and table
This commit is contained in:
parent
c3b23a836a
commit
727cc22bc4
22
library/Director/Web/Table/DependencyTemplateUsageTable.php
Normal file
22
library/Director/Web/Table/DependencyTemplateUsageTable.php
Normal file
@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace Icinga\Module\Director\Web\Table;
|
||||
|
||||
class DependencyTemplateUsageTable extends TemplateUsageTable
|
||||
{
|
||||
public function getTypes()
|
||||
{
|
||||
return [
|
||||
'templates' => $this->translate('Templates'),
|
||||
'applyrules' => $this->translate('Apply Rules'),
|
||||
];
|
||||
}
|
||||
|
||||
protected function getTypeSummaryDefinitions()
|
||||
{
|
||||
return [
|
||||
'templates' => $this->getSummaryLine('template'),
|
||||
'applyrules' => $this->getSummaryLine('apply'),
|
||||
];
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user