Added Node Summary
This commit is contained in:
@@ -79,5 +79,12 @@ abstract class Controller_lnApp_Default extends Controller {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public function after() {
|
||||
parent::after();
|
||||
|
||||
// Generate and check the ETag for this file
|
||||
$this->response->check_cache(NULL,$this->request);
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
@@ -53,37 +53,35 @@ $(document).ready(function () {$("#node_name").change(function () {
|
||||
|
||||
$no = ORM::factory('node',$node_name);
|
||||
|
||||
$output = View::factory('nodes/detail')
|
||||
->set('node',$no);
|
||||
|
||||
Block::add(array(
|
||||
'title'=>sprintf('%s %s',_('Detailed Node Information for'),$no->NODE_NAME),
|
||||
'body'=>$output,
|
||||
'body'=>View::factory('nodes/detail')->set('node',$no),
|
||||
));
|
||||
|
||||
$output = View::factory('nodes/detail_filesystem')
|
||||
->set('node',$no);
|
||||
|
||||
Block::add(array(
|
||||
'title'=>_('Protected File System Information'),
|
||||
'body'=>$output,
|
||||
'body'=>View::factory('nodes/detail_filesystem')->set('node',$no),
|
||||
));
|
||||
|
||||
$output = View::factory('nodes/detail_volumes')
|
||||
->set('node',$no);
|
||||
|
||||
Block::add(array(
|
||||
'title'=>_('Sequential Volume Usage Information'),
|
||||
'body'=>$output,
|
||||
'body'=>View::factory('nodes/detail_volumes')->set('node',$no),
|
||||
));
|
||||
|
||||
$output = View::factory('nodes/detail_schedule')
|
||||
->set('node',$no);
|
||||
|
||||
Block::add(array(
|
||||
'title'=>_('Schedule Information'),
|
||||
'body'=>$output,
|
||||
'body'=>View::factory('nodes/detail_schedule')->set('node',$no),
|
||||
));
|
||||
}
|
||||
|
||||
public function action_summary() {
|
||||
$do = ORM::factory('domain');
|
||||
|
||||
foreach ($do->find_all() as $domain)
|
||||
Block::add(array(
|
||||
'title'=>_('Node Information by Domain'),
|
||||
'body'=>View::factory('nodes/summary')->set('do',$domain)
|
||||
));
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
@@ -31,6 +31,14 @@ class Controller_Tree extends Controller_lnApp_Tree {
|
||||
'attr_href'=>URL::Site('/node'),
|
||||
));
|
||||
|
||||
array_push($data,array(
|
||||
'id'=>'node_summary',
|
||||
'name'=>'Node Summary',
|
||||
'state'=>'none',
|
||||
'attr_id'=>'1',
|
||||
'attr_href'=>URL::Site('/node/summary'),
|
||||
));
|
||||
|
||||
array_push($data,array(
|
||||
'id'=>'activity',
|
||||
'name'=>'Server Activity Gantt',
|
||||
|
Reference in New Issue
Block a user