monitoring: Use host and service display_name for displaying host and service names in the eventhistory overview

refs #7843
This commit is contained in:
Eric Lippmann 2015-01-21 10:29:22 +01:00
parent 3e702ac255
commit 7ff1948c1a
1 changed files with 3 additions and 3 deletions

View File

@ -110,16 +110,16 @@ use Icinga\Module\Monitoring\Object\Service;
'host' => $event->host,
'service' => $event->service
)); ?>">
<?= $this->escape($event->service) ?>
<?= $this->escape($event->service_display_name) ?>
</a>
<small>
<?= $this->translate('on') . ' ' . $this->escape($event->host) ?>
<?= $this->translate('on') . ' ' . $this->escape($event->host_display_name) ?>
</small>
<?php else: ?>
<a href="<?= $this->href('monitoring/show/host', array(
'host' => $event->host
)); ?>">
<?= $this->escape($event->host) ?>
<?= $this->escape($event->host_display_name) ?>
</a>
<?php endif ?>
<br>