translate('Downtimes') ?> getType() === $object::TYPE_HOST) { $scheduleDowntimeLink = $this->href( 'monitoring/host/schedule-downtime', array('host' => $object->getName()) ); } else { $scheduleDowntimeLink = $this->href( 'monitoring/service/schedule-downtime', array('host' => $object->getHost()->getName(), 'service' => $object->getName()) ); } ?> icon('plug') ?> translate('Schedule downtime') ?> downtimes as $downtime) { // Ticket hook sample $text = $this->tickets ? preg_replace_callback( $this->tickets->getPattern(), array($this->tickets, 'createLink'), $this->escape($downtime->comment) ) : $this->escape($downtime->comment); $form = clone $delDowntimeForm; $form->populate(array('downtime_id' => $downtime->id)); if ((bool) $downtime->is_in_effect) { $state = 'in downtime since ' . $this->timeSince($downtime->start); } else { if ((bool) $downtime->is_fixed) { $state = 'scheduled ' . $this->timeUntil($downtime->start); } else { $state = 'scheduled flexible ' . $this->timeUntil($downtime->start); } } ?> escape($downtime->author) ?>
', $text) ?>