monitoring: Use createTicketLinks helper when showing a service's history
refs #9611
This commit is contained in:
parent
498585d8af
commit
e555e3e3b2
|
@ -114,15 +114,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;
|
|
||||||
|
|
||||||
?>
|
|
||||||
<?= sprintf(
|
<?= sprintf(
|
||||||
$this->translate('%s on %s', 'Service running on host'),
|
$this->translate('%s on %s', 'Service running on host'),
|
||||||
$this->escape($event->service_display_name),
|
$this->escape($event->service_display_name),
|
||||||
|
@ -130,7 +122,7 @@ $output = $this->tickets ? preg_replace_callback(
|
||||||
) ?>
|
) ?>
|
||||||
<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