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->downtime = $downtime;
$this->displayComment = true; $this->displayComment = true;
?> ?>
<tr> <tr href="<?= $this->href('monitoring/downtime/show', array('downtime_id' => $downtime->id)) ?>">
<?= $this->render('partials/downtime/downtime-header.phtml'); ?> <?= $this->render('partials/downtime/downtime-header.phtml'); ?>
</tr> </tr>
<?php endforeach ?> <?php endforeach ?>

View File

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