mirror of
https://github.com/Icinga/icingadb-web.git
synced 2026-06-08 16:22:05 -04:00
Do not use StateBadge to construct affected children indicator
This commit is contained in:
parent
2012b29e14
commit
98fc692c5f
2 changed files with 9 additions and 5 deletions
|
|
@ -10,10 +10,10 @@ use Icinga\Module\Icingadb\Util\PluginOutput;
|
|||
use Icinga\Module\Icingadb\Widget\CheckAttempt;
|
||||
use Icinga\Module\Icingadb\Widget\IconImage;
|
||||
use Icinga\Module\Icingadb\Widget\PluginOutputContainer;
|
||||
use ipl\Html\Attributes;
|
||||
use ipl\Html\HtmlElement;
|
||||
use ipl\Web\Common\BaseListItem;
|
||||
use ipl\Web\Widget\EmptyState;
|
||||
use ipl\Web\Widget\StateBadge;
|
||||
use ipl\Web\Widget\TimeSince;
|
||||
use ipl\Html\BaseHtmlElement;
|
||||
use ipl\Html\Html;
|
||||
|
|
@ -104,12 +104,15 @@ abstract class StateListItem extends BaseListItem
|
|||
|
||||
$icon = new Icon(Icons::UNREACHABLE);
|
||||
|
||||
$title->addHtml((new StateBadge([$icon, Text::create($total)], ''))
|
||||
->addAttributes([
|
||||
$title->addHtml(new HtmlElement(
|
||||
'span',
|
||||
Attributes::create([
|
||||
'class' => 'affected-objects',
|
||||
'title' => sprintf(t('Up to %s affected objects'), $total)
|
||||
])
|
||||
);
|
||||
]),
|
||||
$icon,
|
||||
Text::create($total)
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -410,4 +410,5 @@ form[name="form_confirm_removal"] {
|
|||
background-color: @state-critical;
|
||||
color: @text-color-inverted;
|
||||
padding: 0 0.25em;
|
||||
.rounded-corners();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue