mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
downtimes overview: Fix detail links
This commit is contained in:
parent
3db81a8d0f
commit
c90da0378d
@ -46,25 +46,34 @@ if (count($downtimes) === 0) {
|
|||||||
<?= $this->timeUntil($downtime->is_in_effect ? $downtime->end : $downtime->start, $this->compact) ?>
|
<?= $this->timeUntil($downtime->is_in_effect ? $downtime->end : $downtime->start, $this->compact) ?>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<?php
|
<?php if ($isService): ?>
|
||||||
if ($isService) {
|
<?= $this->icon('service', $this->translate('Service')); ?> <?= $this->qlink(
|
||||||
echo $this->icon('service');
|
$this->escape($downtime->host_display_name) . ': ' . $this->escape($downtime->service_display_name),
|
||||||
} else {
|
|
||||||
echo $this->icon('host');
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
<?= $this->qlink(
|
|
||||||
sprintf('%s: %s', $downtime->host_display_name, $downtime->service_display_name),
|
|
||||||
'monitoring/downtime/show',
|
'monitoring/downtime/show',
|
||||||
array('downtime_id' => $downtime->id),
|
array('downtime_id' => $downtime->id),
|
||||||
array(
|
array(
|
||||||
'title' => sprintf(
|
'title' => sprintf(
|
||||||
$this->translate('Show detailed information for downtime on %s for %s'),
|
$this->translate('Show this downtime\'s details for service %s on host %s'),
|
||||||
$downtime->service_display_name,
|
$downtime->service_display_name,
|
||||||
$downtime->host_display_name
|
$downtime->host_display_name
|
||||||
),
|
),
|
||||||
'class' => 'rowaction'
|
'class' => 'rowaction'
|
||||||
)) ?>
|
)
|
||||||
|
); ?>
|
||||||
|
<?php else: ?>
|
||||||
|
<?= $this->icon('host', $this->translate('host')); ?> <?= $this->qlink(
|
||||||
|
$this->escape($downtime->host_display_name),
|
||||||
|
'monitoring/downtime/show',
|
||||||
|
array('downtime_id' => $downtime->id),
|
||||||
|
array(
|
||||||
|
'title' => sprintf(
|
||||||
|
$this->translate('Show this donwtime\'s details for host %s'),
|
||||||
|
$downtime->host_display_name
|
||||||
|
),
|
||||||
|
'class' => 'rowaction'
|
||||||
|
)
|
||||||
|
); ?>
|
||||||
|
<?php endif ?>
|
||||||
<br>
|
<br>
|
||||||
<?= $this->icon('comment', $this->translate('Comment')); ?> [<?= $this->escape($downtime->author_name) ?>] <?= $this->escape($downtime->comment) ?>
|
<?= $this->icon('comment', $this->translate('Comment')); ?> [<?= $this->escape($downtime->author_name) ?>] <?= $this->escape($downtime->comment) ?>
|
||||||
<br>
|
<br>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user