monitoring: Use host and service display_name for displaying host and service names for an object's history
refs #7843
This commit is contained in:
parent
1aa91f0228
commit
4589621f58
|
@ -136,13 +136,18 @@ $output = $this->tickets ? preg_replace_callback(
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<?php if ($isService): ?>
|
<?php if ($isService): ?>
|
||||||
<?= $hostContext ? $this->qlink(
|
<?= sprintf(
|
||||||
$this->escape($event->service_description),
|
$this->translate('%s on %s', 'Service running on host'),
|
||||||
'monitoring/show/service',
|
$hostContext ? $this->qlink(
|
||||||
array(
|
$this->escape($event->service_display_name),
|
||||||
'host' => $event->host_name,
|
'monitoring/show/service',
|
||||||
'service' => $event->service_description)
|
array(
|
||||||
) : $this->escape($event->service_description); ?> <?= $this->translate('on') . ' ' . $this->escape($event->host_name); ?>
|
'host' => $event->host_name,
|
||||||
|
'service' => $event->service_description
|
||||||
|
)
|
||||||
|
) : $this->escape($event->service_display_name),
|
||||||
|
$event->host_display_name
|
||||||
|
) ?>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<?= $this->escape($event->host_name); ?>
|
<?= $this->escape($event->host_name); ?>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
|
Loading…
Reference in New Issue