Provide a link back to all selected objects in multi-views

refs #8565
This commit is contained in:
Matthias Jentsch 2015-03-06 18:03:56 +01:00
parent 266e781a93
commit 95a83a41bd
3 changed files with 14 additions and 3 deletions

View File

@ -39,6 +39,7 @@ class Monitoring_HostsController extends Controller
'icon' => 'host'
)
)->activate('show');
$this->view->listAllLink = Url::fromRequest()->setPath('monitoring/list/hosts');
}
protected function handleCommandForm(ObjectsCommandForm $form)
@ -125,8 +126,8 @@ class Monitoring_HostsController extends Controller
->handleRequest();
$this->view->removeAckForm = $removeAckForm;
}
$this->setAutorefreshInterval(15);
$this->view->listAllLink = Url::fromRequest()->setPath('monitoring/list/hosts');
$this->view->rescheduleAllLink = Url::fromRequest()->setPath('monitoring/hosts/reschedule-check');
$this->view->downtimeAllLink = Url::fromRequest()->setPath('monitoring/hosts/schedule-downtime');
$this->view->processCheckResultAllLink = Url::fromRequest()->setPath('monitoring/hosts/process-check-result');

View File

@ -72,7 +72,12 @@ $hiddenRich = array();
<td class="state">
<div data-title-rich="<span align='left'><?= join('<br>', $hiddenRich) ?></span>"
title="<?= join(', ', $hidden) ?>">
<?= sprintf($this->translate('%d more ...'), count($hidden)) ?>
<?= $this->qlink(
sprintf($this->translate('%d more ...'), count($hidden)),
$listAllLink,
null
) ?>
</div>
</td>
</tr>

View File

@ -74,7 +74,12 @@ use Icinga\Module\Monitoring\Object\Service;
<td class="state">
<div data-title-rich="<span align='left'><?= join('<br>', $hiddenRich) ?></span>"
title="<?= join(', ', $hidden) ?>">
<?= sprintf($this->translate('%d more ...'), count($hidden)) ?>
<?= $this->qlink(
sprintf($this->translate('%d more ...'), count($hidden)),
$listAllLink,
null
) ?>
</div>
</td>
</tr>