Updated linking from homepage to single status page, links to section for that date when clicked, tidied up to ui bits and bobs

Signed-off-by: Nathan Booth <nath.booth@gmail.com>
This commit is contained in:
Nathan Booth
2011-12-31 11:46:47 +00:00
parent 1fe73f3426
commit d243bd65d2
5 changed files with 18 additions and 12 deletions

View File

@@ -44,11 +44,12 @@
</td>
<td>
{$status=$site->status()}
{include file="fragments/site-status.tpl" nocache start=null end=null}
{include file="fragments/site-status.tpl" nocache date=null start=null end=null}
</td>
{foreach from=array(0,1,2,3,4,5,6) item=day}
{$start=mktime(0,0,0,date("n"),date("j")-$day)}
{$end=mktime(0,0,0,date("n"),date("j")-$day+1)}
{$date=mktime(0,0,0,date("n"),date("j")-$day)|date_format:"jM"}
{$incidentsDuring=$site->openIncidentsDuring($start, $end)}
{$statusDuring=StatusBoard_Incident::highestSeverityStatusBetween($incidentsDuring, $start, $end)}
<td>