monitoring: Use createTicketLinks helper when showing a host's history
refs #9611
This commit is contained in:
parent
6481e97565
commit
498585d8af
|
@ -116,15 +116,7 @@ function contactsLink($match, $view) {
|
|||
<br>
|
||||
<?= date('d.m. H:i', $event->timestamp); ?>
|
||||
</td>
|
||||
<td><?php
|
||||
|
||||
$output = $this->tickets ? preg_replace_callback(
|
||||
$this->tickets->getPattern(),
|
||||
array($this->tickets, 'createLink'),
|
||||
$msg
|
||||
) : $msg;
|
||||
|
||||
?>
|
||||
<td>
|
||||
<?php if ($isService): ?>
|
||||
<?= sprintf(
|
||||
$this->translate('%s on %s', 'Service running on host'),
|
||||
|
@ -148,7 +140,7 @@ $output = $this->tickets ? preg_replace_callback(
|
|||
<?php endif ?>
|
||||
<br>
|
||||
<div>
|
||||
<?= $this->icon($icon, $title); ?> <?= empty($msg) ? '' : $msg; ?>
|
||||
<?= $this->icon($icon, $title); ?> <?= $this->createTicketLinks($msg) ?>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
Loading…
Reference in New Issue