<section id="article-body" class="cozy"> <div class="container"> <div class="row"> <div class="col-sm-12 col-md-12 col-lg-12"> <strong>Affected System(s):</strong> <?php print render($content['field_system']); ?> <br /> <strong>Posted On:</strong> <?php print format_date(doit_systems_incident_reported_on($node), 'long'); ?> <br /> <strong>In Effect Starting:</strong> <?php print format_date(doit_systems_incident_start_date($node), 'long'); ?> <br /> <?php $resolvedOn = doit_systems_incident_resolved_on($node); $estResolved = doit_systems_incident_estimated_resolution($node); if (!empty($resolvedOn)) { ?> <strong>In Effect Through:</strong> <?php print format_date($resolvedOn, 'long'); ?> <br /> <?php } elseif (!empty($estResolved)) {
print format_date($resolvedOn, 'long'); ?> <br /> <strong>Duration:</strong> <?php print doit_systems_duration_string(doit_systems_incident_start_date($node), $resolvedOn); ?> <?php } elseif (!empty($estResolved)) { ?> <strong>Estimated Resolution:</strong> <?php print format_date($estResolved, 'long'); ?> <br /> <strong>Estimated Duration:</strong> <?php print doit_systems_duration_string(doit_systems_incident_start_date($node), $estResolved); ?> <?php } else { ?> <strong>Estimated Resolution:</strong> Unknown<br /> <?php } ?> <?php if (!empty($content['field_system_status_messages'])) { ?>