mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
Improve host-service distinction for notifications
This commit is contained in:
parent
0500afb013
commit
99ff058561
@ -40,17 +40,51 @@ if (! $this->compact): ?>
|
|||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<div class="state-header">
|
<div class="state-header">
|
||||||
<?php if ($isService): ?>
|
<?php if ($isService) {
|
||||||
<?= $this->link()->service(
|
echo '<span class="service-on">';
|
||||||
$notification->service_description,
|
echo sprintf(
|
||||||
|
$this->translate('%s on %s', 'service on host'),
|
||||||
|
$this->qlink(
|
||||||
$notification->service_display_name,
|
$notification->service_display_name,
|
||||||
$notification->host_name,
|
'monitoring/service/show',
|
||||||
|
[
|
||||||
|
'host' => $notification->host_name,
|
||||||
|
'service' => $notification->service_description
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'title' => sprintf(
|
||||||
|
$this->translate('Show detailed information for service %s on host %s'),
|
||||||
|
$notification->service_display_name,
|
||||||
|
$notification->host_display_name
|
||||||
|
)
|
||||||
|
]
|
||||||
|
),
|
||||||
|
$this->qlink(
|
||||||
$notification->host_display_name,
|
$notification->host_display_name,
|
||||||
'rowaction'
|
'monitoring/host/show',
|
||||||
) ?>
|
['host' => $notification->host_name],
|
||||||
<?php else: ?>
|
[
|
||||||
<?= $this->link()->host($notification->host_name, $notification->host_display_name) ?>
|
'title' => sprintf(
|
||||||
<?php endif ?>
|
$this->translate('Show detailed information for host %s'),
|
||||||
|
$notification->host_display_name
|
||||||
|
)
|
||||||
|
]
|
||||||
|
)
|
||||||
|
);
|
||||||
|
echo '</span>';
|
||||||
|
} else {
|
||||||
|
echo $this->qlink(
|
||||||
|
$notification->host_display_name,
|
||||||
|
'monitoring/host/show',
|
||||||
|
['host' => $notification->host_name],
|
||||||
|
[
|
||||||
|
'title' => sprintf(
|
||||||
|
$this->translate('Show detailed information for host %s'),
|
||||||
|
$notification->host_display_name
|
||||||
|
)
|
||||||
|
]
|
||||||
|
);
|
||||||
|
} ?>
|
||||||
<?php if (! $this->contact): ?>
|
<?php if (! $this->contact): ?>
|
||||||
<div class="notification-recipient">
|
<div class="notification-recipient">
|
||||||
<?php if ($notification->notification_contact_name): ?>
|
<?php if ($notification->notification_contact_name): ?>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user