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

refs #7843
This commit is contained in:
Eric Lippmann 2015-01-21 16:12:37 +01:00
parent e933b9174c
commit cf391b056c

View File

@ -50,21 +50,13 @@
</td> </td>
<td> <td>
<?php if ($comment->objecttype === 'service'): ?> <?php if ($comment->objecttype === 'service'): ?>
<?= $this->icon('conf'); ?> <a href="<?= $this->href('monitoring/service/show', array( <?= $this->icon('service') ?>
'host' => $comment->host, <?= $this->link()->service(
'service' => $comment->service, $comment->service, $comment->service_display_name, $comment->host, $comment->host_display_name
)); ?>"> ) ?>
<?= $comment->service; ?>
</a>
<small>
<?= $this->translate('on') . ' ' . $comment->host; ?>
</small>
<?php else: ?> <?php else: ?>
<?= $this->icon('host'); ?> <a href="<?= $this->href('monitoring/host/show', array( <?= $this->icon('host') ?>
'host' => $comment->host <?= $this->link()->host($comment->host, $comment->host_display_name) ?>
)); ?>">
<?= $comment->host; ?>
</a>
<?php endif ?> <?php endif ?>
<br> <br>
<?= $this->icon('comment'); ?> <?= isset($comment->author) <?= $this->icon('comment'); ?> <?= isset($comment->author)