mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-26 07:14:35 +02:00
Improve host-service distinction for events
This commit is contained in:
parent
f7ed5de8c8
commit
dc3147c652
@ -188,35 +188,51 @@ $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(
|
||||||
],
|
$event->service_display_name,
|
||||||
[
|
'monitoring/service/show',
|
||||||
'title' => sprintf(
|
[
|
||||||
$this->translate('Show detailed information for host %s'),
|
'host' => $event->host_name,
|
||||||
$event->host_display_name
|
'service' => $event->service_description
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'title' => sprintf(
|
||||||
|
$this->translate('Show detailed information for service %s on host %s'),
|
||||||
|
$event->service_display_name,
|
||||||
|
$event->host_display_name
|
||||||
|
)
|
||||||
|
]
|
||||||
|
),
|
||||||
|
$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 if ($isService): ?>:
|
echo '</span>';
|
||||||
<?= $this->qlink(
|
} else {
|
||||||
$event->service_display_name,
|
echo $this->qlink(
|
||||||
'monitoring/service/show',
|
$event->host_display_name,
|
||||||
[
|
'monitoring/host/show',
|
||||||
'host' => $event->host_name,
|
['host' => $event->host_name],
|
||||||
'service' => $event->service_description
|
|
||||||
],
|
|
||||||
[
|
[
|
||||||
'title' => sprintf(
|
'title' => sprintf(
|
||||||
$this->translate('Show detailed information for service %s on host %s'),
|
$this->translate('Show detailed information for host %s'),
|
||||||
$event->service_display_name,
|
|
||||||
$event->host_display_name
|
$event->host_display_name
|
||||||
)
|
)
|
||||||
]
|
]
|
||||||
) ?>
|
);
|
||||||
<?php endif ?>
|
} ?>
|
||||||
<?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…
x
Reference in New Issue
Block a user