diff --git a/source/webui/pages/status.php b/source/webui/pages/status.php
index 22216e9..90a8ac2 100644
--- a/source/webui/pages/status.php
+++ b/source/webui/pages/status.php
@@ -1,6 +1,19 @@
request();
+$service_id = $request->get('service', 'Sihnon_Exception_InvalidParameters');
+$site_id = $request->get('id', 'Sihnon_Exception_InvalidParameters');
+$service = null;
+$site = null;
+
+try {
+ $service = StatusBoard_Service::fromId($service_id);
+ $site = StatusBoard_Site::fromId($site_id);
+} catch (Sihnon_Exception_ResultCountMismatch $e) {
+ throw new StatusBoard_Exception_FileNotFound();
+}
$services = StatusBoard_Service::all();
-$this->smarty->assign('services', $services);
-
+$this->smarty->assign('service', $service);
+$this->smarty->assign('site', $site);
?>
\ No newline at end of file
diff --git a/source/webui/templates/fragments/site-status.tpl b/source/webui/templates/fragments/site-status.tpl
index 46164c1..c1f667a 100644
--- a/source/webui/templates/fragments/site-status.tpl
+++ b/source/webui/templates/fragments/site-status.tpl
@@ -15,6 +15,6 @@
{assign var=img_src value="{$base_uri}images/Status_Icons/cross-circle.png"}
{/case}
{/switch}
-
+
\ No newline at end of file
diff --git a/source/webui/templates/status.tpl b/source/webui/templates/status.tpl
index c69abb1..4134ed4 100644
--- a/source/webui/templates/status.tpl
+++ b/source/webui/templates/status.tpl
@@ -1,79 +1,92 @@
This page details the incident history for a Site related to a Service
+This page details the incident history for a site
{foreach from=array(0,1,2,3,4,5,6) item=day} - {if $day == 0} -x incidents
-| Incident | -Description | -Time Opened | -Status | -Time Closed | - - -
|---|---|---|---|---|
| 123456 | -Loss of power on remote site | -14:00 | -Major Incident | -- | -
| 123457 | -Loss of power on remote site | -14:00 | -Major Incident | -- | -
x incidents
+| Incident | +Description | +Time Opened | +Status | +Time Closed | + + + {foreach from=$incidentsDuring item=incident} +
|---|---|---|---|---|
| {$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} + | +
x incidents
+x incidents
| Incident | -Description | -Time Opened | -Status | -Time Closed | - - -
|---|---|---|---|---|
| 123456 | -Loss of power on remote site | -14:00 | -Major Incident | -- | -
| 123457 | -Loss of power on remote site | -14:00 | -Major Incident | -- | -
| Incident | +Description | +Time Opened | +Status | +Time Closed | + + + {foreach from=$incidentsDuring item=incident} +
|---|---|---|---|---|
| {$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} + |