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

@@ -20,6 +20,8 @@ class Controller_Reseller_Account extends Controller_Account {
* Show a list of accounts
*/
public function action_list() {
$this->meta->title = 'Customer List';
Block::factory()
->title(_('Customer List'))
->title_icon('fa fa-list')
@@ -54,6 +56,8 @@ class Controller_Reseller_Account extends Controller_Account {
if (! $ao->loaded() OR ! $ao->status OR ! Auth::instance()->authorised($ao))
throw HTTP_Exception::factory(403,'Account either doesnt exist, or you are not authorised to see it');
$this->meta->title = 'Customer: '.$ao->name();
$this->template->content = View::factory('account/reseller/view')->set('o',$ao);
}
}