2014-09-24 07:47:26 +02:00
|
|
|
<div class="controls">
|
2015-02-02 16:28:35 +01:00
|
|
|
<?= $this->render('partials/service/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 (($serviceCount = count($objects)) === 0): ?>
|
2014-09-24 07:47:26 +02:00
|
|
|
<?= $this->translate('No services matching the filter') ?>
|
|
|
|
<?php else: ?>
|
|
|
|
|
|
|
|
<div>
|
2015-02-03 12:35:06 +01:00
|
|
|
<a href="<?= $listAllLink ?>" title="<?= sprintf($this->translate('List all %u services'), $serviceCount) ?>">
|
2014-09-24 07:47:26 +02:00
|
|
|
<?= $this->translate('List all') ?>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<?= $checkNowForm ?>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<a href="<?= $rescheduleAllLink ?>">
|
2015-02-16 10:52:42 +01:00
|
|
|
<?= $this->icon('reschedule'); ?>
|
2014-09-24 07:47:26 +02:00
|
|
|
<?= $this->translate('Reschedule service checks') ?>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<a href="<?= $downtimeAllLink ?>">
|
2015-02-16 10:52:42 +01:00
|
|
|
<?= $this->icon('plug'); ?>
|
2014-09-24 07:47:26 +02:00
|
|
|
<?= $this->translate('Schedule service downtimes') ?>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
|
2014-12-11 15:52:23 +01:00
|
|
|
<div>
|
|
|
|
<a href="<?= $processCheckResultAllLink; ?>">
|
2015-02-16 10:52:42 +01:00
|
|
|
<?= $this->icon('reply'); ?>
|
2014-12-11 15:52:23 +01:00
|
|
|
<?= $this->translate('Submit passive check results'); ?>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
|
2014-09-24 07:47:26 +02:00
|
|
|
<?php if (! empty($unhandledObjects)): ?>
|
2014-10-01 09:24:52 +02:00
|
|
|
<h3>
|
2014-12-30 10:45:24 +01:00
|
|
|
<?php $unhandledCount = count($unhandledObjects) ?>
|
2014-09-24 07:47:26 +02:00
|
|
|
<?= sprintf(
|
|
|
|
$this->translatePlural(
|
|
|
|
'%u Unhandled Service Problem',
|
|
|
|
'%u Unhandled Service Problems',
|
2014-12-30 10:45:24 +01:00
|
|
|
$unhandledCount
|
2014-09-24 07:47:26 +02:00
|
|
|
),
|
2014-12-30 10:45:24 +01:00
|
|
|
$unhandledCount
|
2014-09-24 07:47:26 +02:00
|
|
|
) ?>
|
2014-10-01 09:24:52 +02:00
|
|
|
</h3>
|
2014-09-24 07:47:26 +02:00
|
|
|
<div>
|
2015-02-03 12:35:06 +01:00
|
|
|
<a href="<?= $downtimeUnhandledLink ?>" title="<?= sprintf(
|
|
|
|
$this->translatePlural(
|
|
|
|
'Schedule downtime for %u unhandled service problem',
|
|
|
|
'Schedule downtimes for %u unhandled service problems',
|
|
|
|
$unhandledCount
|
|
|
|
),
|
|
|
|
$unhandledCount
|
|
|
|
) ?>">
|
2015-02-16 10:52:42 +01:00
|
|
|
<?= $this->icon('plug'); ?>
|
2015-02-03 12:35:06 +01:00
|
|
|
<?= sprintf(
|
|
|
|
$this->translatePlural(
|
|
|
|
'Schedule downtime for unhandled service problem',
|
|
|
|
'Schedule downtimes for unhandled service problems',
|
|
|
|
$unhandledCount
|
|
|
|
),
|
|
|
|
$unhandledCount
|
|
|
|
) ?>
|
2014-09-24 07:47:26 +02:00
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div>
|
2015-02-03 12:35:06 +01:00
|
|
|
<a href="<?= $acknowledgeUnhandledLink ?>" title="<?= sprintf(
|
|
|
|
$this->translatePlural(
|
|
|
|
'Acknowledge %u unhandled service problem',
|
|
|
|
'Acknowledge %u unhandled service problems',
|
|
|
|
$unhandledCount
|
|
|
|
),
|
|
|
|
$unhandledCount
|
|
|
|
) ?>">
|
2015-02-16 10:52:42 +01:00
|
|
|
<?= $this->icon('ok'); ?>
|
2015-02-03 12:35:06 +01:00
|
|
|
<?= sprintf(
|
|
|
|
$this->translatePlural(
|
|
|
|
'Acknowledge unhandled service problem',
|
|
|
|
'Acknowledge unhandled service problems',
|
|
|
|
$unhandledCount
|
|
|
|
),
|
|
|
|
$unhandledCount
|
|
|
|
) ?>
|
2014-09-24 07:47:26 +02:00
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<?php endif ?>
|
|
|
|
|
|
|
|
<?php if (! empty($acknowledgedObjects)): ?>
|
|
|
|
<h2>
|
2014-12-30 10:46:08 +01:00
|
|
|
<?php $acknowledgedCount = count($acknowledgedObjects) ?>
|
2014-09-24 07:47:26 +02:00
|
|
|
<?= sprintf(
|
|
|
|
$this->translatePlural(
|
|
|
|
'%u Acknowledged Service Problem',
|
|
|
|
'%u Acknowledged Service Problems',
|
2014-12-30 10:46:08 +01:00
|
|
|
$acknowledgedCount
|
2014-09-24 07:47:26 +02:00
|
|
|
),
|
2014-12-30 10:46:08 +01:00
|
|
|
$acknowledgedCount
|
2014-09-24 07:47:26 +02:00
|
|
|
) ?>
|
|
|
|
</h2>
|
|
|
|
<div>
|
|
|
|
<?= $removeAckForm ?>
|
|
|
|
</div>
|
|
|
|
<?php endif ?>
|
|
|
|
|
|
|
|
<?php if (! empty($objectsInDowntime)): ?>
|
|
|
|
<h2>
|
2014-12-30 10:47:10 +01:00
|
|
|
<?php $inDowntimeCount = count($objectsInDowntime) ?>
|
2015-02-03 12:35:06 +01:00
|
|
|
<a href="<?= $inDowntimeLink ?>" title="<?= sprintf(
|
|
|
|
$this->translatePlural(
|
|
|
|
'List %u service currently in downtime',
|
|
|
|
'List %u services currently in downtime',
|
|
|
|
$inDowntimeCount
|
|
|
|
),
|
|
|
|
$inDowntimeCount) ?>">
|
2015-02-16 10:52:42 +01:00
|
|
|
<?= $this->icon('plug'); ?>
|
2014-12-30 10:47:10 +01:00
|
|
|
<?= sprintf(
|
|
|
|
$this->translatePlural(
|
2015-02-03 12:35:06 +01:00
|
|
|
'List %u service currently in downtime',
|
|
|
|
'List %u services currently in downtime',
|
2014-12-30 10:47:10 +01:00
|
|
|
$inDowntimeCount
|
|
|
|
),
|
|
|
|
$inDowntimeCount
|
|
|
|
) ?>
|
2014-09-24 07:47:26 +02:00
|
|
|
</a>
|
|
|
|
</h2>
|
|
|
|
<?php endif ?>
|
|
|
|
|
2015-02-03 12:35:06 +01:00
|
|
|
<?php $commentCount = count($objects->getComments()) ?>
|
|
|
|
<?php if ($commentCount): ?>
|
2014-09-24 07:47:26 +02:00
|
|
|
<h2>
|
2015-02-03 12:35:06 +01:00
|
|
|
<a href="<?= $commentsLink ?>" title="<?= sprintf(
|
|
|
|
$this->translatePlural(
|
|
|
|
'List %u service comment',
|
|
|
|
'List %u service comments',
|
|
|
|
$commentCount
|
|
|
|
),
|
|
|
|
$commentCount
|
|
|
|
) ?>">
|
2015-02-16 10:52:42 +01:00
|
|
|
<?= $this->icon('comment'); ?>
|
2014-12-30 10:48:30 +01:00
|
|
|
<?= sprintf(
|
|
|
|
$this->translatePlural(
|
2015-02-03 12:35:06 +01:00
|
|
|
'List %u service comment',
|
|
|
|
'List %u service comments',
|
|
|
|
$commentCount
|
2014-12-30 10:48:30 +01:00
|
|
|
),
|
2015-02-03 12:35:06 +01:00
|
|
|
$commentCount
|
2014-12-30 10:48:30 +01:00
|
|
|
) ?>
|
2014-09-24 07:47:26 +02:00
|
|
|
</a>
|
|
|
|
</h2>
|
|
|
|
<?php endif ?>
|
|
|
|
<?php endif ?>
|
|
|
|
</div>
|