Backed and Gui coding for site status page, made the hyperlink on homepage link correctly to status
Signed-off-by: Nathan Booth <nath.booth@gmail.com>
This commit is contained in:
@@ -1,6 +1,19 @@
|
||||
<?php
|
||||
$main = StatusBoard_Main::instance();
|
||||
$request = $main->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);
|
||||
?>
|
||||
Reference in New Issue
Block a user