mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-09-21 17:07:53 +02:00
Host/service header: don't automatically select parentheses around monitored object's name
refs #12208
This commit is contained in:
parent
18b9412b62
commit
172929a72b
@ -17,7 +17,8 @@ use Icinga\Module\Monitoring\Object\Host;
|
|||||||
echo $this->iconImage()->host($object);
|
echo $this->iconImage()->host($object);
|
||||||
echo '<span class="selectable">' . $this->escape($object->host_display_name) . '</span>';
|
echo '<span class="selectable">' . $this->escape($object->host_display_name) . '</span>';
|
||||||
if ($object->host_display_name !== $object->host_name) {
|
if ($object->host_display_name !== $object->host_name) {
|
||||||
echo ' <span class="selectable host-meta">(' . $this->escape($object->host_name) . ')</span>';
|
echo ' <span class="host-meta">(<span class="selectable">' . $this->escape($object->host_name)
|
||||||
|
. '</span>)</span>';
|
||||||
}
|
}
|
||||||
if ($object->host_alias !== $object->host_display_name && $object->host_alias !== $object->host_name) {
|
if ($object->host_alias !== $object->host_display_name && $object->host_alias !== $object->host_name) {
|
||||||
echo '<div class="selectable host-meta">'
|
echo '<div class="selectable host-meta">'
|
||||||
|
@ -18,7 +18,8 @@ use Icinga\Module\Monitoring\Object\Service;
|
|||||||
echo $this->iconImage()->host($object);
|
echo $this->iconImage()->host($object);
|
||||||
echo '<span class="selectable">' . $this->escape($object->host_display_name) . '</span>';
|
echo '<span class="selectable">' . $this->escape($object->host_display_name) . '</span>';
|
||||||
if ($object->host_display_name !== $object->host_name) {
|
if ($object->host_display_name !== $object->host_name) {
|
||||||
echo ' <span class="selectable host-meta">(' . $this->escape($object->host_name) . ')</span>';
|
echo ' <span class="host-meta">(<span class="selectable">' . $this->escape($object->host_name)
|
||||||
|
. '</span>)</span>';
|
||||||
}
|
}
|
||||||
echo $this->render('partials/host/statusicons.phtml');
|
echo $this->render('partials/host/statusicons.phtml');
|
||||||
if ($object->host_address6 && $object->host_address6 !== $object->host_name) {
|
if ($object->host_address6 && $object->host_address6 !== $object->host_name) {
|
||||||
@ -48,7 +49,8 @@ use Icinga\Module\Monitoring\Object\Service;
|
|||||||
echo $this->translate('Service')
|
echo $this->translate('Service')
|
||||||
. ': <span class="selectable">' . $this->escape($object->service_display_name) . '</span>';
|
. ': <span class="selectable">' . $this->escape($object->service_display_name) . '</span>';
|
||||||
if ($object->service_display_name !== $object->service_description) {
|
if ($object->service_display_name !== $object->service_description) {
|
||||||
echo ' <span class="selectable service-meta">(' . $this->escape($object->service_description) . ')</span>';
|
echo ' <span class="service-meta">(<span class="selectable">'
|
||||||
|
. $this->escape($object->service_description) . '</span>)</span>';
|
||||||
}
|
}
|
||||||
echo $this->render('partials/service/statusicons.phtml');
|
echo $this->render('partials/service/statusicons.phtml');
|
||||||
?></td>
|
?></td>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user