Added meta title to pages

This commit is contained in:
Deon George
2016-07-29 11:19:30 +10:00
parent f426502707
commit e0b45be758
22 changed files with 73 additions and 49 deletions

View File

@@ -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);