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

@@ -37,6 +37,8 @@ class Controller_User_Service extends Controller_Service {
* Show a list of services
*/
public function action_list() {
$this->meta->title = 'Service List';
Block::factory()
->title(sprintf('Services for Account: %s',$this->ao->accnum()))
->title_icon('icon-th-list')
@@ -64,6 +66,8 @@ class Controller_User_Service extends Controller_Service {
if (! $so->loaded() OR ! Auth::instance()->authorised($so->account))
throw HTTP_Exception::factory(403,'Service either doesnt exist, or you are not authorised to see it');
$this->meta->title = 'Service: '.$so->name();
$output .= View::factory('service/user/view')
->set('o',$so);