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

@@ -18,9 +18,11 @@ class Controller_Reseller_Email extends Controller_Email {
* Show a list of emails
*/
public function action_list() {
$this->meta->title = 'Emails Sent';
Block::factory()
->title(_('System Emails Sent'))
->title_icon('icon-th')
->title(_('Emails Sent'))
->title_icon('fa fa-envelope')
->body(Table::factory()
->page_items(25)
->data(ORM::factory('Email_Log')->where_authorised($this->ao)->find_all())

View File

@@ -19,6 +19,8 @@ class Controller_User_Email extends Controller_Email {
* Show a list of emails
*/
public function action_list() {
$this->meta->title = 'Email List';
$this->template->content = View::factory('email/user/list');
}
@@ -30,6 +32,8 @@ class Controller_User_Email extends Controller_Email {
if (! $elo->loaded() OR ! Auth::instance()->authorised($elo->account))
throw HTTP_Exception::factory(403,'Service either doesnt exist, or you are not authorised to see it');
$this->meta->title = 'Email: '.$elo->name();
$output .= View::factory('email/user/view')
->set('elo',$elo);