service_description)) { $isService = true; $stateName = Service::getStateText($downtime->service_state); } else { $isService = false; $stateName = Host::getStateText($downtime->host_state); } ?>
compact): ?> tabs; ?>

link()->service( $downtime->service_description, $downtime->service_display_name, $downtime->host_name, $downtime->host_display_name ); $icon = $this->icon('service', $this->translate('Service')); ?> icon('host', $this->translate('Host')); $link = $this->link()->host($downtime->host_name, $downtime->host_display_name) ?> translate( 'Downtime for %s', 'Downtime for host or service.' ), $link ); ?>

is_flexible): ?> is_in_effect): ?> translate('This flexible service downtime was started on %s at %s and lasts for %s until %s at %s.') : $this->translate('This flexible host downtime was started on %s at %s and lasts for %s until %s at %s.'), date('d.m.y', $downtime->start), date('H:i', $downtime->start), $this->format()->duration($downtime->duration), date('d.m.y', $downtime->end), date('H:i', $downtime->end) ); ?> translate('This flexible service downtime has been scheduled to start between %s - %s and to last for %s.') : $this->translate('This flexible host downtime has been scheduled to start between %s - %s and to last for %s.'), date('d.m.y H:i', $downtime->scheduled_start), date('d.m.y H:i', $downtime->scheduled_end), $this->format()->duration($downtime->duration) ); ?> is_in_effect): ?> translate('This fixed service downtime was started on %s at %s and expires on %s at %s.') : $this->translate('This fixed host downtime was started on %s at %s and expires on %s at %s.'), date('d.m.y', $downtime->start), date('H:i', $downtime->start), date('d.m.y', $downtime->end), date('H:i', $downtime->end) ); ?> translate('This fixed service downtime has been scheduled to start on %s at %s and to end on %s at %s.') : $this->translate('This fixed host downtime has been scheduled to start on %s at %s and to end on %s at %s.'), date('d.m.y', $downtime->scheduled_start), date('H:i', $downtime->scheduled_start), date('d.m.y', $downtime->scheduled_end), date('H:i', $downtime->scheduled_end) ); ?>

downtime->is_flexible && $this->downtime->is_in_effect): ?>
translate('Author') ?> escape($this->downtime->author_name) ?>
translate('Comments') ?> escape($this->downtime->comment) ?>
translate('Scheduled start') ?> downtime->scheduled_start) ?>
translate('Scheduled end') ?> downtime->scheduled_end) ?>
translate('Is Flexible') ?> escape( $this->downtime->is_flexible ? $this->translate('Yes') : $this->translate('No') ); ?>
translate('In Effect') ?> escape( $this->downtime->is_in_effect ? $this->translate('Yes') : $this->translate('No') ); ?>
translate('Start') ?> start); ?>
translate('End') ?> end); ?>
translate('Duration') ?> format()->duration($this->escape($this->downtime->duration)); ?>
translate('Commands') ?> populate(array('downtime_id' => $downtime->id, 'redirect' => $this->listAllLink)); if (! $isService) { $delDowntimeForm->setAction( $this->url('monitoring/host/delete-downtime', array('host' => $downtime->host_name)) ); } else { $delDowntimeForm->setAction( $this->url('monitoring/service/delete-downtime', array( 'host' => $downtime->host_name, 'service' => $downtime->service_description )) ); } echo $delDowntimeForm; ?>