Added Server activity log

This commit is contained in:
Deon George
2012-12-13 13:19:58 +11:00
parent 31609b2121
commit 46e80f5b45
14 changed files with 164 additions and 6 deletions

View File

@@ -15,6 +15,12 @@ class Controller_Server extends Controller_TemplateDefault {
* Default Index for Controller
*/
public function action_index() {
$so = ORM::factory('STATUS',Session::instance()->get('SERVER')->get('SERVER_NAME'));
Block::add(array(
'title'=>_('Server Information'),
'body'=>View::factory(sprintf('%s/detail',strtolower($this->request->controller())))->set('o',$so),
));
}
public function action_gantt() {

View File

@@ -71,6 +71,14 @@ class Controller_Tree extends lnApp_Controller_Tree {
'attr_href'=>URL::Site('stgpool'),
));
array_push($data,array(
'id'=>'server',
'name'=>'Server Info',
'state'=>'none',
'attr_id'=>'1',
'attr_href'=>URL::Site('server'),
));
array_push($data,array(
'id'=>'volume',
'name'=>'Volume Info',