icingaweb2/modules/monitoring/application/views/scripts/partials/host/statusicons.phtml
Johannes Meyer afa3431aed Introduce new object- and command-view scripts
Represents how we plan to handle view scripts that are re-usable. Should
supersede all <action>/component/* view scripts in the upcoming future.
2015-02-02 16:26:55 +01:00

28 lines
No EOL
920 B
PHTML

<?php
$icons = array();
if (! $this->object->host_handled && $this->object->host_state > 0) {
$icons[] = $this->icon('attention-alt', $this->translate('Unhandled'));
}
if ($this->object->host_acknowledged && !$this->object->host_in_downtime) {
$icons[] = $this->icon('ok', $this->translate('Acknowledged'));
}
if (! $this->object->host_notifications_enabled) {
$icons[] = $this->icon('bell-off-empty', $this->translate('Notifications Disabled'));
}
if ($this->object->host_in_downtime) {
$icons[] = $this->icon('plug', $this->translate('In Downtime'));
}
if (! $this->object->host_active_checks_enabled) {
if ($this->object->host_passive_checks_enabled) {
$icons[] = $this->icon('eye-off', $this->translate('Active Checks Disabled'));
} else {
$icons[] = $this->icon('eye-off', $this->translate('Active And Passive Checks Disabled'));
}
}
?><?= implode("\n", $icons); ?>