2014-09-24 07:47:26 +02:00
|
|
|
<div class="controls">
|
2015-02-23 17:22:07 +01:00
|
|
|
<?= $this->render('partials/host/objects-header.phtml'); ?>
|
2014-09-24 07:47:26 +02:00
|
|
|
</div>
|
|
|
|
<div class="content">
|
2015-02-02 16:28:35 +01:00
|
|
|
<?php if (($hostCount = count($objects)) === 0): ?>
|
2015-02-23 17:22:07 +01:00
|
|
|
<?= $this->translate('No hosts matching the filter'); ?>
|
2014-09-24 07:47:26 +02:00
|
|
|
<?php else: ?>
|
2015-02-23 17:22:07 +01:00
|
|
|
<h3><?= sprintf($this->translatePlural('%u Host', '%u Hosts', $hostCount), $hostCount); ?></h3>
|
|
|
|
<div><?= $this->qlink(
|
|
|
|
sprintf($this->translate('List all %u hosts'), $hostCount),
|
|
|
|
$listAllLink
|
|
|
|
); ?></div>
|
2014-09-24 07:47:26 +02:00
|
|
|
<div>
|
2015-02-23 17:22:07 +01:00
|
|
|
<?= $checkNowForm; ?>
|
2014-09-24 07:47:26 +02:00
|
|
|
</div>
|
2015-02-23 17:22:07 +01:00
|
|
|
<div><?= $this->qlink(
|
|
|
|
$this->icon('reschedule') . ' ' . sprintf(
|
|
|
|
$this->translate('Reschedule the next check for all %u hosts'),
|
|
|
|
$hostCount
|
|
|
|
),
|
|
|
|
$rescheduleAllLink,
|
|
|
|
null,
|
|
|
|
null,
|
|
|
|
false
|
|
|
|
); ?></div>
|
|
|
|
<div><?= $this->qlink(
|
|
|
|
$this->icon('plug') . ' ' . sprintf($this->translate('Schedule a downtime for all %u hosts'), $hostCount),
|
|
|
|
$downtimeAllLink,
|
|
|
|
null,
|
|
|
|
null,
|
|
|
|
false
|
|
|
|
); ?></div>
|
|
|
|
<div><?= $this->qlink(
|
|
|
|
$this->icon('reply') . ' ' . sprintf(
|
|
|
|
$this->translate('Submit a passive check result for all %u hosts'),
|
|
|
|
$hostCount
|
|
|
|
),
|
|
|
|
$processCheckResultAllLink,
|
|
|
|
null,
|
|
|
|
null,
|
|
|
|
false
|
|
|
|
); ?></div>
|
|
|
|
<?php if (($unhandledCount = count($unhandledObjects)) > 0): ?>
|
2014-12-11 15:52:23 +01:00
|
|
|
<div>
|
2015-02-23 17:22:07 +01:00
|
|
|
<h3><?= sprintf(
|
2014-09-24 07:47:26 +02:00
|
|
|
$this->translatePlural(
|
|
|
|
'%u Unhandled Host Problem',
|
|
|
|
'%u Unhandled Host Problems',
|
2014-12-30 10:30:31 +01:00
|
|
|
$unhandledCount
|
2014-09-24 07:47:26 +02:00
|
|
|
),
|
2014-12-30 10:30:31 +01:00
|
|
|
$unhandledCount
|
2015-02-23 17:22:07 +01:00
|
|
|
); ?></h3>
|
|
|
|
<div><?= $this->qlink(
|
|
|
|
$this->icon('plug') . ' ' . sprintf(
|
2015-02-03 12:34:22 +01:00
|
|
|
$this->translatePlural(
|
2015-02-23 17:22:07 +01:00
|
|
|
'Schedule a downtime for %u unhandled host problem',
|
|
|
|
'Schedule a downtime for %u unhandled host problems',
|
2015-02-03 12:34:22 +01:00
|
|
|
$unhandledCount
|
|
|
|
),
|
|
|
|
$unhandledCount
|
|
|
|
),
|
2015-02-23 17:22:07 +01:00
|
|
|
$downtimeUnhandledLink,
|
|
|
|
null,
|
|
|
|
null,
|
|
|
|
false
|
|
|
|
); ?></div>
|
|
|
|
<div><?= $this->qlink(
|
|
|
|
$this->icon('ok') . ' ' . sprintf(
|
2015-02-03 12:34:22 +01:00
|
|
|
$this->translatePlural(
|
2015-02-23 17:22:07 +01:00
|
|
|
'Acknowledge %u unhandled host problem',
|
|
|
|
'Acknowledge %u unhandled host problems',
|
2015-02-03 12:34:22 +01:00
|
|
|
$unhandledCount
|
|
|
|
),
|
|
|
|
$unhandledCount
|
2015-02-23 17:22:07 +01:00
|
|
|
),
|
|
|
|
$acknowledgeUnhandledLink,
|
|
|
|
null,
|
|
|
|
null,
|
|
|
|
false
|
|
|
|
); ?></div>
|
2014-09-24 07:47:26 +02:00
|
|
|
</div>
|
2015-02-23 17:22:07 +01:00
|
|
|
<?php endif ?>
|
|
|
|
<?php if (($acknowledgedCount = count($acknowledgedObjects)) > 0): ?>
|
|
|
|
<div>
|
|
|
|
<h2><?= sprintf(
|
|
|
|
$this->translatePlural(
|
|
|
|
'%u Acknowledged Host Problem',
|
|
|
|
'%u Acknowledged Host Problems',
|
2014-12-30 10:31:23 +01:00
|
|
|
$acknowledgedCount
|
2015-02-23 17:22:07 +01:00
|
|
|
),
|
|
|
|
$acknowledgedCount
|
|
|
|
); ?></h2>
|
|
|
|
<?= $removeAckForm ?>
|
|
|
|
</div>
|
|
|
|
<?php endif ?>
|
|
|
|
<?php if (($inDowntimeCount = count($objectsInDowntime)) > 0): ?>
|
|
|
|
<h2><?= $this->qlink(
|
|
|
|
$this->icon('plug') . ' ' . sprintf(
|
|
|
|
$this->translatePlural(
|
|
|
|
'List %u host currently in downtime',
|
|
|
|
'List %u hosts currently in downtime',
|
|
|
|
$inDowntimeCount
|
|
|
|
),
|
|
|
|
$inDowntimeCount
|
|
|
|
),
|
|
|
|
$inDowntimeLink,
|
|
|
|
null,
|
|
|
|
null,
|
|
|
|
false
|
|
|
|
); ?></h2>
|
|
|
|
<?php endif ?>
|
|
|
|
<?php if (($commentCount = count($objects->getComments())) > 0): ?>
|
|
|
|
<h2><?= $this->qlink(
|
|
|
|
$this->icon('comment') . ' ' . sprintf(
|
|
|
|
$this->translatePlural(
|
|
|
|
'List %u host comment',
|
|
|
|
'List %u host comments',
|
|
|
|
$commentCount
|
|
|
|
),
|
|
|
|
$commentCount
|
|
|
|
),
|
|
|
|
$commentsLink,
|
|
|
|
null,
|
|
|
|
null,
|
|
|
|
false
|
|
|
|
); ?></h2>
|
|
|
|
<?php endif ?>
|
2014-09-24 07:47:26 +02:00
|
|
|
<?php endif ?>
|
2015-02-23 17:22:07 +01:00
|
|
|
</div>
|