Improve host-service distinction for events
This commit is contained in:
parent
f7ed5de8c8
commit
dc3147c652
|
@ -188,20 +188,11 @@ $rowAction = Url::fromPath('monitoring/event/show');
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
<div class="history-message-output">
|
<div class="history-message-output">
|
||||||
<?php if ($this->isOverview): ?>
|
<?php if ($this->isOverview): ?>
|
||||||
<?= $this->qlink(
|
<?php if ($isService) {
|
||||||
$event->host_display_name,
|
echo '<span class="service-on">';
|
||||||
'monitoring/host/show',
|
echo sprintf(
|
||||||
[
|
$this->translate('%s on %s', 'service on host'),
|
||||||
'host' => $event->host_name,
|
$this->qlink(
|
||||||
],
|
|
||||||
[
|
|
||||||
'title' => sprintf(
|
|
||||||
$this->translate('Show detailed information for host %s'),
|
|
||||||
$event->host_display_name
|
|
||||||
)
|
|
||||||
]
|
|
||||||
) ?><?php if ($isService): ?>:
|
|
||||||
<?= $this->qlink(
|
|
||||||
$event->service_display_name,
|
$event->service_display_name,
|
||||||
'monitoring/service/show',
|
'monitoring/service/show',
|
||||||
[
|
[
|
||||||
|
@ -215,8 +206,33 @@ $rowAction = Url::fromPath('monitoring/event/show');
|
||||||
$event->host_display_name
|
$event->host_display_name
|
||||||
)
|
)
|
||||||
]
|
]
|
||||||
) ?>
|
),
|
||||||
<?php endif ?>
|
$this->qlink(
|
||||||
|
$event->host_display_name,
|
||||||
|
'monitoring/host/show',
|
||||||
|
['host' => $event->host_name],
|
||||||
|
[
|
||||||
|
'title' => sprintf(
|
||||||
|
$this->translate('Show detailed information for host %s'),
|
||||||
|
$event->host_display_name
|
||||||
|
)
|
||||||
|
]
|
||||||
|
)
|
||||||
|
);
|
||||||
|
echo '</span>';
|
||||||
|
} else {
|
||||||
|
echo $this->qlink(
|
||||||
|
$event->host_display_name,
|
||||||
|
'monitoring/host/show',
|
||||||
|
['host' => $event->host_name],
|
||||||
|
[
|
||||||
|
'title' => sprintf(
|
||||||
|
$this->translate('Show detailed information for host %s'),
|
||||||
|
$event->host_display_name
|
||||||
|
)
|
||||||
|
]
|
||||||
|
);
|
||||||
|
} ?>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
<?= $this->nl2br($this->createTicketLinks($this->markdown($msg, ['class' => 'overview-plugin-output']))) ?>
|
<?= $this->nl2br($this->createTicketLinks($this->markdown($msg, ['class' => 'overview-plugin-output']))) ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue