summaryrefslogtreecommitdiffstats
path: root/library/Icingadb/Widget/ItemList/UserList.php
diff options
context:
space:
mode:
Diffstat (limited to 'library/Icingadb/Widget/ItemList/UserList.php')
-rw-r--r--library/Icingadb/Widget/ItemList/UserList.php29
1 files changed, 29 insertions, 0 deletions
diff --git a/library/Icingadb/Widget/ItemList/UserList.php b/library/Icingadb/Widget/ItemList/UserList.php
new file mode 100644
index 0000000..826a467
--- /dev/null
+++ b/library/Icingadb/Widget/ItemList/UserList.php
@@ -0,0 +1,29 @@
+<?php
+
+/* Icinga DB Web | (c) 2020 Icinga GmbH | GPLv2 */
+
+namespace Icinga\Module\Icingadb\Widget\ItemList;
+
+use Icinga\Module\Icingadb\Common\NoSubjectLink;
+use Icinga\Module\Icingadb\Common\BaseItemList;
+use ipl\Web\Url;
+
+class UserList extends BaseItemList
+{
+ use NoSubjectLink;
+
+ protected $defaultAttributes = ['class' => 'user-list item-table'];
+
+ protected function init()
+ {
+ parent::init();
+
+ $this->getAttributes()->get('class')->removeValue('item-list');
+ $this->setDetailUrl(Url::fromPath('icingadb/user'));
+ }
+
+ protected function getItemClass(): string
+ {
+ return UserListItem::class;
+ }
+}