<?php

$objectName = $this->is_service ? 'Services' : 'Hosts';

?>
<tr class="newsection">
  <th><?= count($downtimes) ?> Downtimes</th>
  <td>
    <a href="<?=$this->href('monitoring/command/removedowntime', $this->target); ?>"><?=
      $this->icon('cancel') ?>Remove Downtimes</a><br />
    <a title="Schedule downtimes for all selected <?= $objectName ?>" href="<?=
      $this->href('monitoring/command/scheduledowntime', $this->target) ?>"><?=
      $this->icon('plug')
      ?> Schedule Downtimes</a>
  </td>
  <td>
    Change <a data-base-target='_next' href="<?= $this->href('') ?>"> <?= count($downtimes) ?> downtimes</a>.
  </td>
</tr>
