monitoring: Show host's services in the next container

refs #7998
This commit is contained in:
Eric Lippmann 2015-05-28 12:26:22 +02:00
parent 8dbb215e27
commit e0fe6440d2

View File

@ -12,7 +12,7 @@ function urlAddFilterOptional($url, $filter, $optional) {
return $url->setQueryString($f->toQueryString()); return $url->setQueryString($f->toQueryString());
} }
$selfUrl = Url::fromPath('monitoring/show/services', array('host' => $object->host_name)); $selfUrl = Url::fromPath('monitoring/list/services', array('host' => $object->host_name));
$currentUrl = Url::fromRequest()->without('limit')->getRelativeUrl(); $currentUrl = Url::fromRequest()->without('limit')->getRelativeUrl();
?><div class="tinystatesummary" <?= $this->compact ? ' data-base-target="col1"' : ''; ?>> ?><div class="tinystatesummary" <?= $this->compact ? ' data-base-target="col1"' : ''; ?>>
<?php if ($object->stats->services_total): ?> <?php if ($object->stats->services_total): ?>
@ -27,15 +27,18 @@ $currentUrl = Url::fromRequest()->without('limit')->getRelativeUrl();
), ),
$selfUrl, $selfUrl,
null, null,
array('title' => sprintf( array(
$this->translatePlural( 'title' => sprintf(
'List all %u service on host %s', $this->translatePlural(
'List all %u services on host %s', 'List all %u service on host %s',
$object->stats->services_total 'List all %u services on host %s',
$object->stats->services_total
),
$object->stats->services_total,
$object->host_name
), ),
$object->stats->services_total, 'data-base-target' => '_next'
$object->host_name )
))
); ?> ); ?>
<?php else: ?> <?php else: ?>
<?= $this->translate('No services configured on this host'); ?> <?= $this->translate('No services configured on this host'); ?>
@ -151,4 +154,4 @@ foreach (array(2 => 'critical', 3 => 'unknown', 1 => 'warning') as $stateId => $
</span> </span>
<?php endif ?> <?php endif ?>
</span> </span>
</div> </div>