Site Status History: {$service->name|escape:html} - {$site->name|escape:html}

This page details the incident history for a site

{foreach from=array(0,1,2,3,4,5,6) item=day} {if $day == 0}

Today {mktime(0,0,0,date("n"),date("j"))|date_format:"d M Y"}

x incidents

{$start=mktime(0,0,0,date("n"),date("j")-$day)} {$end=mktime(0,0,0,date("n"),date("j")-$day+1)} {$incidentsDuring=$site->openIncidentsDuring($start, $end)} {if $incidentsDuring} {foreach from=$incidentsDuring item=incident} {/foreach} {else}

There were no recorded incidents on this day

{/if}
Incident Description Time Opened Status Time Closed
{$incident->reference|escape:html} {$incident->description|truncate|escape:html} {date('d-M H:i', $incident->start_time)} {StatusBoard_Status::name($incident->currentStatus())} {if $incident->actual_end_time} {date('d-M H:i', $incident->actual_end_time)} {else} Still Open {/if}
{else}

{mktime(0,0,0,date("n"),date("j")-$day)|date_format:"d M Y"}

x incidents

{$start=mktime(0,0,0,date("n"),date("j")-$day)} {$end=mktime(0,0,0,date("n"),date("j")-$day+1)} {$incidentsDuring=$site->openIncidentsDuring($start, $end)} {if $incidentsDuring} {foreach from=$incidentsDuring item=incident} {/foreach} {else}

There were no recorded incidents on this day

{/if}
Incident Description Time Opened Status Time Closed
{$incident->reference|escape:html} {$incident->description|truncate|escape:html} {date('d-M H:i', $incident->start_time)} {StatusBoard_Status::name($incident->currentStatus())} {if $incident->actual_end_time} {date('d-M H:i', $incident->actual_end_time)} {else} Still Open {/if}
{/if} {/foreach}