mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-21 12:54:26 +02:00
monitoring: Use display_name for displaying the host and service names in the comments overview
refs #7843
This commit is contained in:
parent
e933b9174c
commit
cf391b056c
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user