mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-09-25 10:57:40 +02:00
Remove leading and trailing whitespace from host status icons partial
refs #12208
This commit is contained in:
parent
a9f86c6f22
commit
0e5b2806fd
@ -1,28 +1,25 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
$icons = array();
|
|
||||||
if (! $this->object->host_handled && $this->object->host_state > 0) {
|
if (! $this->object->host_handled && $this->object->host_state > 0) {
|
||||||
$icons[] = $this->icon('attention-alt', $this->translate('Unhandled'));
|
echo $this->icon('attention-alt', $this->translate('Unhandled'));
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->object->host_acknowledged && !$this->object->host_in_downtime) {
|
if ($this->object->host_acknowledged && !$this->object->host_in_downtime) {
|
||||||
$icons[] = $this->icon('ok', $this->translate('Acknowledged'));
|
echo $this->icon('ok', $this->translate('Acknowledged'));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (! $this->object->host_notifications_enabled) {
|
if (! $this->object->host_notifications_enabled) {
|
||||||
$icons[] = $this->icon('bell-off-empty', $this->translate('Notifications Disabled'));
|
echo $this->icon('bell-off-empty', $this->translate('Notifications Disabled'));
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->object->host_in_downtime) {
|
if ($this->object->host_in_downtime) {
|
||||||
$icons[] = $this->icon('plug', $this->translate('In Downtime'));
|
echo $this->icon('plug', $this->translate('In Downtime'));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (! $this->object->host_active_checks_enabled) {
|
if (! $this->object->host_active_checks_enabled) {
|
||||||
if ($this->object->host_passive_checks_enabled) {
|
if ($this->object->host_passive_checks_enabled) {
|
||||||
$icons[] = $this->icon('eye-off', $this->translate('Active Checks Disabled'));
|
echo $this->icon('eye-off', $this->translate('Active Checks Disabled'));
|
||||||
} else {
|
} else {
|
||||||
$icons[] = $this->icon('eye-off', $this->translate('Active And Passive Checks Disabled'));
|
echo $this->icon('eye-off', $this->translate('Active And Passive Checks Disabled'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
?><?= implode("\n", $icons); ?>
|
|
Loading…
x
Reference in New Issue
Block a user