Added meta title to pages
This commit is contained in:
@@ -33,6 +33,8 @@ class Controller_Admin_Adsl extends Controller_Adsl {
|
||||
}
|
||||
|
||||
public function action_list() {
|
||||
$this->meta->title = 'ADSL Plans';
|
||||
|
||||
Block::factory()
|
||||
->title('ADSL Plans')
|
||||
->title_icon('icon-th-list')
|
||||
@@ -62,6 +64,12 @@ class Controller_Admin_Adsl extends Controller_Adsl {
|
||||
|
||||
public function action_edit() {
|
||||
$apo = ORM::factory('Product_Plugin_Adsl',$this->request->param('id'));
|
||||
|
||||
if (! $qpo->loaded())
|
||||
throw HTTP_Exception::factory(403,'Plan either doesnt exist, or you are not authorised to see it');
|
||||
|
||||
$this->meta->title = 'ADSL Plan: '.$qpo->name();
|
||||
|
||||
$test_result = array();
|
||||
|
||||
if (! $apo->loaded())
|
||||
@@ -106,6 +114,8 @@ class Controller_Admin_Adsl extends Controller_Adsl {
|
||||
* Usage statistics for the previous moth
|
||||
*/
|
||||
public function action_stat() {
|
||||
$this->meta->title = 'ADSL Stats';
|
||||
|
||||
// @todo This needs to be configurable.
|
||||
$traffic = array(1,2,5,10,25,50,75,100,150,200);
|
||||
|
||||
|
Reference in New Issue
Block a user