- = $this->translate('You have selected') ?> - = $this->qlink( - sprintf($this->translate('%d downtimes'), count($downtimes)), - $listAllLink, - null, - array('title' => $this->translate('List all selected downtimes.')) - ) ?> -
+ = sprintf($this->translate('%d Downtimes'), count($downtimes)) ?> + = count($downtimes) > 5 ? + sprintf($this->translate('(%d not shown)'), count ($downtimes) - 5) + : ''; + ?> +
++
+ = $downtime->is_in_effect ? $this->translate('Expires') : $this->translate('Starts'); ?>
+ + = + $this->dateTimeRenderer( + ($downtime->is_in_effect ? $downtime->end : $downtime->start), + true + )->render( + $this->translate('on %s', 'datetime'), + $this->translate('at %s', 'time'), + $this->translate('in %s', 'timespan') + ); + ?> + |
+ + isService): ?> + = $this->icon('service') ?> + = $downtime->service ?> on = $downtime->host_name ?>. + + = $this->icon('host') ?> + = $downtime->host_name ?>. + + + is_flexible): ?> + is_in_effect): ?> + = sprintf( + $this->isService + ? $this->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) + ); ?> + + = sprintf( + $this->isService + ? $this->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): ?> + = sprintf( + $this->isService + ? $this->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) + ); ?> + + = sprintf( + $this->isService + ? $this->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) + ); ?> + + + | +
+ = $this->qlink( + sprintf($this->translate('List all %d downtimes …'), count($downtimes)), + $listAllLink, + null, + array( + 'title' => $this->translate('List all'), + 'data-base-target' => "_next" + ) + ) ?> +
+ +