summaryrefslogtreecommitdiffstats
path: root/library/Icingadb/Widget/ItemList/DowntimeListItem.php
blob: cb7e9b38ed2258a137190f005cffff502c6fc0b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php

/* Icinga DB Web | (c) 2020 Icinga GmbH | GPLv2 */

namespace Icinga\Module\Icingadb\Widget\ItemList;

use Icinga\Module\Icingadb\Common\ListItemCommonLayout;
use ipl\Html\BaseHtmlElement;

class DowntimeListItem extends BaseDowntimeListItem
{
    use ListItemCommonLayout;

    protected function assembleMain(BaseHtmlElement $main): void
    {
        if ($this->item->is_in_effect) {
            $main->add($this->createProgress());
        }

        $main->add($this->createHeader());
        $main->add($this->createCaption());
    }
}