downtimes as $i => $downtime): if ($i > 5) { break; } if ($downtime->objecttype === 'service') { $this->isService = true; $this->stateName = Service::getStateText($downtime->service_state); } else { $this->isService = false; $this->stateName = Host::getStateText($downtime->host_state); } $this->downtime = $downtime; $this->displayComment = false; ?> render('partials/downtime/downtime-header.phtml') ?>
count() > 5): ?>

qlink( sprintf($this->translate('List all %d downtimes'), $downtimes->count()), $listAllLink, null, array( 'data-base-target' => '_next', 'icon' => 'down-open' ) ) ?>