|
12 | 12 | use Icinga\Module\Kubernetes\Model\CronJob;
|
13 | 13 | use Icinga\Module\Kubernetes\Model\Event;
|
14 | 14 | use Icinga\Module\Kubernetes\Web\ItemList\ResourceList;
|
15 |
| -use ipl\Html\Attributes; |
16 | 15 | use ipl\Html\BaseHtmlElement;
|
17 |
| -use ipl\Html\HtmlDocument; |
18 | 16 | use ipl\Html\HtmlElement;
|
19 | 17 | use ipl\Html\Text;
|
20 | 18 | use ipl\I18n\Translation;
|
21 | 19 | use ipl\Stdlib\Filter;
|
22 | 20 | use ipl\Web\Widget\EmptyState;
|
23 |
| -use ipl\Web\Widget\StateBall; |
24 | 21 |
|
25 | 22 | class CronJobDetail extends BaseHtmlElement
|
26 | 23 | {
|
@@ -74,14 +71,7 @@ protected function assemble(): void
|
74 | 71 | $this->translate('Failed Jobs History Limit') => $this->cronJob->failed_jobs_history_limit,
|
75 | 72 | $this->translate('Last Successful Time') => $lastSuccessfulTime,
|
76 | 73 | $this->translate('Last Schedule Time') => $lastScheduleTime,
|
77 |
| - $this->translate('Icinga State') => (new HtmlDocument())->addHtml( |
78 |
| - new StateBall($this->cronJob->icinga_state, StateBall::SIZE_MEDIUM), |
79 |
| - new HtmlElement( |
80 |
| - 'span', |
81 |
| - new Attributes(['class' => 'icinga-state-text']), |
82 |
| - new Text($this->cronJob->icinga_state) |
83 |
| - ) |
84 |
| - ) |
| 74 | + $this->translate('Icinga State') => new DetailState($this->cronJob->icinga_state) |
85 | 75 | ])),
|
86 | 76 | new Labels($this->cronJob->label),
|
87 | 77 | new Annotations($this->cronJob->annotation),
|
|
0 commit comments