diff --git a/library/Icingadb/Common/CaptionDisabled.php b/library/Icingadb/Common/CaptionDisabled.php deleted file mode 100644 index 2cee178b8..000000000 --- a/library/Icingadb/Common/CaptionDisabled.php +++ /dev/null @@ -1,31 +0,0 @@ -captionDisabled; - } - - /** - * @param bool $captionDisabled - * - * @return $this - */ - public function setCaptionDisabled(bool $captionDisabled = true): self - { - $this->captionDisabled = $captionDisabled; - - return $this; - } -} diff --git a/library/Icingadb/Common/ListItemCommonLayout.php b/library/Icingadb/Common/ListItemCommonLayout.php index 5a11be30b..5db304ce2 100644 --- a/library/Icingadb/Common/ListItemCommonLayout.php +++ b/library/Icingadb/Common/ListItemCommonLayout.php @@ -8,8 +8,6 @@ trait ListItemCommonLayout { - use CaptionDisabled; - protected function assembleHeader(BaseHtmlElement $header): void { $header->addHtml($this->createTitle()); @@ -19,8 +17,6 @@ protected function assembleHeader(BaseHtmlElement $header): void protected function assembleMain(BaseHtmlElement $main): void { $main->addHtml($this->createHeader()); - if (!$this->isCaptionDisabled()) { - $main->addHtml($this->createCaption()); - } + $main->addHtml($this->createCaption()); } } diff --git a/library/Icingadb/Common/ListItemMinimalLayout.php b/library/Icingadb/Common/ListItemMinimalLayout.php index 3cdf3a9ec..f146e79b0 100644 --- a/library/Icingadb/Common/ListItemMinimalLayout.php +++ b/library/Icingadb/Common/ListItemMinimalLayout.php @@ -8,14 +8,10 @@ trait ListItemMinimalLayout { - use CaptionDisabled; - protected function assembleHeader(BaseHtmlElement $header): void { $header->add($this->createTitle()); - if (! $this->isCaptionDisabled()) { - $header->add($this->createCaption()); - } + $header->add($this->createCaption()); $header->add($this->createTimestamp()); } diff --git a/library/Icingadb/Widget/ItemList/CommentList.php b/library/Icingadb/Widget/ItemList/CommentList.php index 5eb495c69..66303e007 100644 --- a/library/Icingadb/Widget/ItemList/CommentList.php +++ b/library/Icingadb/Widget/ItemList/CommentList.php @@ -4,7 +4,6 @@ namespace Icinga\Module\Icingadb\Widget\ItemList; -use Icinga\Module\Icingadb\Common\CaptionDisabled; use Icinga\Module\Icingadb\Common\DetailActions; use Icinga\Module\Icingadb\Common\Links; use Icinga\Module\Icingadb\Common\NoSubjectLink; diff --git a/library/Icingadb/Widget/ItemList/DowntimeList.php b/library/Icingadb/Widget/ItemList/DowntimeList.php index 2cfc187f5..9ecccd073 100644 --- a/library/Icingadb/Widget/ItemList/DowntimeList.php +++ b/library/Icingadb/Widget/ItemList/DowntimeList.php @@ -4,7 +4,6 @@ namespace Icinga\Module\Icingadb\Widget\ItemList; -use Icinga\Module\Icingadb\Common\CaptionDisabled; use Icinga\Module\Icingadb\Common\DetailActions; use Icinga\Module\Icingadb\Common\Links; use Icinga\Module\Icingadb\Common\NoSubjectLink; diff --git a/library/Icingadb/Widget/ItemList/HistoryList.php b/library/Icingadb/Widget/ItemList/HistoryList.php index d3b623289..049c117b7 100644 --- a/library/Icingadb/Widget/ItemList/HistoryList.php +++ b/library/Icingadb/Widget/ItemList/HistoryList.php @@ -4,7 +4,6 @@ namespace Icinga\Module\Icingadb\Widget\ItemList; -use Icinga\Module\Icingadb\Common\CaptionDisabled; use Icinga\Module\Icingadb\Common\DetailActions; use Icinga\Module\Icingadb\Common\LoadMore; use Icinga\Module\Icingadb\Common\NoSubjectLink; @@ -16,7 +15,6 @@ class HistoryList extends BaseItemList { - use CaptionDisabled; use NoSubjectLink; use ViewMode; use LoadMore; diff --git a/library/Icingadb/Widget/ItemList/HistoryListItemMinimal.php b/library/Icingadb/Widget/ItemList/HistoryListItemMinimal.php index 5a7f21453..e737f1b79 100644 --- a/library/Icingadb/Widget/ItemList/HistoryListItemMinimal.php +++ b/library/Icingadb/Widget/ItemList/HistoryListItemMinimal.php @@ -11,15 +11,6 @@ class HistoryListItemMinimal extends BaseHistoryListItem { use ListItemMinimalLayout; - protected function init(): void - { - parent::init(); - - if ($this->list->isCaptionDisabled()) { - $this->setCaptionDisabled(); - } - } - protected function getStateBallSize(): string { return StateBall::SIZE_BIG; diff --git a/library/Icingadb/Widget/ItemList/NotificationList.php b/library/Icingadb/Widget/ItemList/NotificationList.php index 3a16b0b31..70955b75e 100644 --- a/library/Icingadb/Widget/ItemList/NotificationList.php +++ b/library/Icingadb/Widget/ItemList/NotificationList.php @@ -4,7 +4,6 @@ namespace Icinga\Module\Icingadb\Widget\ItemList; -use Icinga\Module\Icingadb\Common\CaptionDisabled; use Icinga\Module\Icingadb\Common\DetailActions; use Icinga\Module\Icingadb\Common\LoadMore; use Icinga\Module\Icingadb\Common\NoSubjectLink; @@ -15,7 +14,6 @@ class NotificationList extends BaseItemList { - use CaptionDisabled; use NoSubjectLink; use ViewMode; use LoadMore; diff --git a/library/Icingadb/Widget/ItemList/NotificationListItemMinimal.php b/library/Icingadb/Widget/ItemList/NotificationListItemMinimal.php index dd6d22612..dbf33dda6 100644 --- a/library/Icingadb/Widget/ItemList/NotificationListItemMinimal.php +++ b/library/Icingadb/Widget/ItemList/NotificationListItemMinimal.php @@ -11,15 +11,6 @@ class NotificationListItemMinimal extends BaseNotificationListItem { use ListItemMinimalLayout; - protected function init(): void - { - parent::init(); - - if ($this->list->isCaptionDisabled()) { - $this->setCaptionDisabled(); - } - } - protected function getStateBallSize(): string { return StateBall::SIZE_BIG;