HostController: Open a host's service in the current column

This commit is contained in:
Johannes Meyer 2015-06-17 10:24:18 +02:00
parent 3caa5b428a
commit 0d32b94eaa
2 changed files with 3 additions and 2 deletions

View File

@ -12,6 +12,7 @@
'compact' => true, 'compact' => true,
'showHost' => false, 'showHost' => false,
'services' => $services, 'services' => $services,
'addColumns' => array() 'addColumns' => array(),
'baseTarget' => '_self'
) )
); ?> ); ?>

View File

@ -25,7 +25,7 @@ if (count($services) === 0) {
return; return;
} }
?> ?>
<table data-base-target="_next" <table data-base-target="<?= isset($baseTarget) ? $baseTarget : '_next'; ?>"
class="action multiselect <?php if ($this->compact): ?> compact<?php endif ?>" style="table-layout: auto;" class="action multiselect <?php if ($this->compact): ?> compact<?php endif ?>" style="table-layout: auto;"
data-icinga-multiselect-url="<?= $this->href("monitoring/services/show") ?>" data-icinga-multiselect-url="<?= $this->href("monitoring/services/show") ?>"
data-icinga-multiselect-data="service,host"> data-icinga-multiselect-data="service,host">