67 lines
2.7 KiB
PHTML
67 lines
2.7 KiB
PHTML
<div>
|
|
<div class="panel-heading">
|
|
<div class="panel-hostname">
|
|
|
|
<div class="pull-right">
|
|
<?php
|
|
$scheduleDowntimeData = array(
|
|
'host' => $this->object->host_name,
|
|
'service' => $this->object->service_description
|
|
);
|
|
|
|
$scheduleDowntimeHref = $this->href('monitoring/command/scheduleDowntime', $scheduleDowntimeData);
|
|
?>
|
|
<a href="<?= $scheduleDowntimeHref; ?>" class="btn-common btn-small button" title="Schedule downtime">
|
|
<?= $this->img('img/icons/in_downtime.png') ?>
|
|
</a>
|
|
</div>
|
|
Downtimes
|
|
</div>
|
|
</div>
|
|
<hr class="separator" />
|
|
<div class="panel-body">
|
|
<table class="table table-condensed table-detail">
|
|
<tbody>
|
|
<?php if (empty($this->object->downtimes)): ?>
|
|
<tr>
|
|
<td>No Downtimes</td>
|
|
</tr>
|
|
<?php else: ?>
|
|
<?php foreach ($this->object->downtimes as $downtime): ?>
|
|
<tr>
|
|
<td>
|
|
<div class="pull-right">
|
|
<?= $this->getHelper('CommandForm')->iconSubmitForm(
|
|
'img/icons/remove.png',
|
|
'Remove Downtime',
|
|
'btn-small',
|
|
'removedowntime',
|
|
array(
|
|
'downtimeid' => $downtime->downtime_internal_downtime_id,
|
|
'host' => $downtime->host,
|
|
'service' => $downtime->service
|
|
)
|
|
); ?>
|
|
</div>
|
|
<?php if ($downtime->downtime_is_in_effect === '1'): ?>
|
|
In scheduled downtime since <?= $this->timeSince($downtime->downtime_start); ?>
|
|
<?php else: ?>
|
|
<?php if ($downtime->downtime_is_fixed): ?>
|
|
Downtime scheduled for <?= $downtime->downtime_start; ?>
|
|
<?php else: ?>
|
|
Waiting
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
|
|
<div class="small-row">
|
|
<?= $downtime->downtime_author; ?>: <?= $downtime->downtime_comment; ?>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
<?php endif; ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|