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

View File

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