Fix links in downtime list

This commit is contained in:
Matthias Jentsch 2015-10-01 14:49:48 +02:00
parent 03ab6e4e92
commit f54fcefefb
2 changed files with 10 additions and 8 deletions

View File

@ -40,7 +40,7 @@ if (! $this->compact): ?>
$this->downtime = $downtime;
$this->displayComment = true;
?>
<tr>
<tr href="<?= $this->href('monitoring/downtime/show', array('downtime_id' => $downtime->id)) ?>">
<?= $this->render('partials/downtime/downtime-header.phtml'); ?>
</tr>
<?php endforeach ?>

View File

@ -12,28 +12,30 @@
<?php if ($isService): ?>
<?= $this->icon('service', $this->translate('Service')); ?> <?= $this->qlink(
$this->escape($downtime->host_display_name) . ': ' . $this->escape($downtime->service_display_name),
'monitoring/downtime/show',
array('downtime_id' => $downtime->id),
'monitoring/service/show',
array(
'host' => $downtime->host_name,
'service' => $downtime->service_description
),
array(
'title' => sprintf(
$this->translate('Show detailed information for this downtime scheduled for service %s on host %s'),
$downtime->service_display_name,
$downtime->host_display_name
),
'class' => 'rowaction'
)
)
); ?>
<?php else: ?>
<?= $this->icon('host', $this->translate('host')); ?> <?= $this->qlink(
$this->escape($downtime->host_display_name),
'monitoring/downtime/show',
'monitoring/host/show',
array('host' => $downtime->host_name),
array('downtime_id' => $downtime->id),
array(
'title' => sprintf(
$this->translate('Show detailed information for this downtime scheduled for host %s'),
$downtime->host_display_name
),
'class' => 'rowaction'
)
)
); ?>
<?php endif ?>