mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 16:24:04 +02:00
parent
71534369ef
commit
9fc80ec34f
@ -22,36 +22,48 @@ use Icinga\Web\Url;
|
|||||||
<?php if (($serviceCount = count($objects)) === 0): ?>
|
<?php if (($serviceCount = count($objects)) === 0): ?>
|
||||||
<?= $this->translate('No services matching the filter'); ?>
|
<?= $this->translate('No services matching the filter'); ?>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<?= sprintf(t('Issue commands on all %d selected services'), count($objects)) ?>
|
<?= sprintf(t('Issue commands on all %d selected services:'), count($objects)) ?>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<div>
|
<div>
|
||||||
<?= $checkNowForm; ?>
|
<?= $checkNowForm; ?>
|
||||||
</div>
|
</div>
|
||||||
<div><?= $this->qlink(
|
|
||||||
|
<div>
|
||||||
|
<?= $this->qlink(
|
||||||
$this->translate('Reschedule the next check'),
|
$this->translate('Reschedule the next check'),
|
||||||
$rescheduleAllLink,
|
$rescheduleAllLink,
|
||||||
null,
|
null,
|
||||||
array('icon' => 'reschedule')
|
array('icon' => 'reschedule')
|
||||||
); ?></div>
|
); ?>
|
||||||
<div><?= $this->qlink(
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<?= $this->qlink(
|
||||||
$this->translate('Schedule a downtime'),
|
$this->translate('Schedule a downtime'),
|
||||||
$downtimeAllLink,
|
$downtimeAllLink,
|
||||||
null,
|
null,
|
||||||
array('icon' => 'plug')
|
array('icon' => 'plug')
|
||||||
); ?></div>
|
); ?>
|
||||||
<div><?= $this->qlink(
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<?= $this->qlink(
|
||||||
$this->translate('Submit a passive check result'),
|
$this->translate('Submit a passive check result'),
|
||||||
$processCheckResultAllLink,
|
$processCheckResultAllLink,
|
||||||
null,
|
null,
|
||||||
array('icon' => 'reply')
|
array('icon' => 'reply')
|
||||||
); ?></div>
|
); ?>
|
||||||
<div><?= $this->qlink(
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<?= $this->qlink(
|
||||||
$this->translate('Add a comment'),
|
$this->translate('Add a comment'),
|
||||||
$addCommentLink,
|
$addCommentLink,
|
||||||
null,
|
null,
|
||||||
array('icon' => 'comment')
|
array('icon' => 'comment')
|
||||||
); ?></div>
|
); ?>
|
||||||
|
</div>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<?php if (($unhandledCount = count($unhandledObjects)) > 0): ?>
|
<?php if (($unhandledCount = count($unhandledObjects)) > 0): ?>
|
||||||
@ -100,18 +112,16 @@ use Icinga\Web\Url;
|
|||||||
); ?></div>
|
); ?></div>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
<?php if (($acknowledgedCount = count($acknowledgedObjects)) > 0): ?>
|
|
||||||
|
|
||||||
<h3> <?= $this->icon('ok', $this->translate('Acknowledgements')) ?> <?= $this->translate('Acknowledgements') ?> </h3>
|
<?php if (($acknowledgedCount = count($acknowledgedObjects)) > 0): ?>
|
||||||
|
<h3><?= $this->icon('ok', $this->translate('Acknowledgements')) ?> <?= $this->translate('Acknowledgements') ?></h3>
|
||||||
<p>
|
<p>
|
||||||
<?= sprintf(
|
<?= sprintf(
|
||||||
$this->translatePlural(
|
$this->translatePlural(
|
||||||
'%u Acknowledged Service Problem',
|
'%u Acknowledged Service Problem.',
|
||||||
'%u Acknowledged Service Problems',
|
'%u Acknowledged Service Problems.',
|
||||||
$acknowledgedCount
|
$acknowledgedCount
|
||||||
),
|
),
|
||||||
$acknowledgedCount
|
$acknowledgedCount
|
||||||
@ -120,23 +130,19 @@ use Icinga\Web\Url;
|
|||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
|
||||||
|
|
||||||
<?php if (($inDowntimeCount = count($objectsInDowntime)) > 0): ?>
|
<?php if (($inDowntimeCount = count($objectsInDowntime)) > 0 /*&& $auth->hasPermission('monitoring/command/comment/delete')*/): ?>
|
||||||
|
|
||||||
<h3> <?= $this->icon('plug', $this->translate('Downtimes')) ?> <?= $this->translate('Downtimes') ?> </h3>
|
<h3> <?= $this->icon('plug', $this->translate('Downtimes')) ?> <?= $this->translate('Downtimes') ?> </h3>
|
||||||
<p> <?= sprintf($this->translatePlural(
|
<p> <?= sprintf($this->translatePlural(
|
||||||
'%u service currently in downtime',
|
'%u service currently in downtime.',
|
||||||
'%u services currently in downtime',
|
'%u services currently in downtime.',
|
||||||
$inDowntimeCount
|
$inDowntimeCount
|
||||||
), $inDowntimeCount) ?>
|
), $inDowntimeCount) ?>
|
||||||
|
|
||||||
<div>
|
|
||||||
<?= $this->qlink(
|
<?= $this->qlink(
|
||||||
$this->translate('List all'),
|
$this->translate('List all'),
|
||||||
$inDowntimeLink,
|
$inDowntimeLink,
|
||||||
null,
|
null
|
||||||
array('icon' => 'plug')
|
|
||||||
);?>
|
);?>
|
||||||
</div>
|
|
||||||
</p>
|
</p>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
|
||||||
@ -146,12 +152,18 @@ use Icinga\Web\Url;
|
|||||||
<h3> <?= $this->icon('comment') ?> <?= t('Comments') ?> </h3>
|
<h3> <?= $this->icon('comment') ?> <?= t('Comments') ?> </h3>
|
||||||
<p><?= sprintf(
|
<p><?= sprintf(
|
||||||
$this->translatePlural(
|
$this->translatePlural(
|
||||||
'There are no comments.',
|
'There is %d comment.',
|
||||||
'There are %d comments',
|
'There are %d comments.',
|
||||||
$commentCount
|
$commentCount
|
||||||
), $commentCount);
|
), $commentCount);
|
||||||
?>
|
?>
|
||||||
|
<?= $this->qlink(
|
||||||
|
$this->translate('List all'),
|
||||||
|
$commentsLink,
|
||||||
|
null
|
||||||
|
); ?>
|
||||||
<p>
|
<p>
|
||||||
|
|
||||||
<table>
|
<table>
|
||||||
<?php foreach ($objects as $service): ?>
|
<?php foreach ($objects as $service): ?>
|
||||||
<?php $service->fetchComments(); ?>
|
<?php $service->fetchComments(); ?>
|
||||||
@ -180,20 +192,9 @@ use Icinga\Web\Url;
|
|||||||
<?php endforeach ?>
|
<?php endforeach ?>
|
||||||
<?php endforeach ?>
|
<?php endforeach ?>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
<!--
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div>
|
|
||||||
<?= $this->qlink(
|
|
||||||
$this->translate('List all'),
|
|
||||||
$commentsLink,
|
|
||||||
null,
|
|
||||||
array('icon' => 'comment')
|
|
||||||
); ?>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
TODO: implement backend functionality.
|
|
||||||
|
|
||||||
<div><?= $this->qlink(
|
<div><?= $this->qlink(
|
||||||
$this->translate('Remove all'),
|
$this->translate('Remove all'),
|
||||||
$deleteCommentLink,
|
$deleteCommentLink,
|
||||||
@ -201,8 +202,7 @@ use Icinga\Web\Url;
|
|||||||
array('icon' => 'trash')
|
array('icon' => 'trash')
|
||||||
); ?></div>
|
); ?></div>
|
||||||
</p>
|
</p>
|
||||||
-->
|
-->
|
||||||
|
|
||||||
|
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user