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>
|
<br>
|
||||||
<?= date('d.m. H:i', $event->timestamp); ?>
|
<?= date('d.m. H:i', $event->timestamp); ?>
|
||||||
</td>
|
</td>
|
||||||
<td><?php
|
<td>
|
||||||
|
|
||||||
$output = $this->tickets ? preg_replace_callback(
|
|
||||||
$this->tickets->getPattern(),
|
|
||||||
array($this->tickets, 'createLink'),
|
|
||||||
$msg
|
|
||||||
) : $msg;
|
|
||||||
|
|
||||||
?>
|
|
||||||
<?php if ($isService): ?>
|
<?php if ($isService): ?>
|
||||||
<?= sprintf(
|
<?= sprintf(
|
||||||
$this->translate('%s on %s', 'Service running on host'),
|
$this->translate('%s on %s', 'Service running on host'),
|
||||||
|
@ -148,7 +140,7 @@ $output = $this->tickets ? preg_replace_callback(
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
<br>
|
<br>
|
||||||
<div>
|
<div>
|
||||||
<?= $this->icon($icon, $title); ?> <?= empty($msg) ? '' : $msg; ?>
|
<?= $this->icon($icon, $title); ?> <?= $this->createTicketLinks($msg) ?>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
Loading…
Reference in New Issue