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

@@ -10,26 +10,5 @@
* @license http://dev.osbill.net/license.html
*/
class Controller_Account extends Controller_TemplateDefault {
protected function group() {
// List all available groups for this user.
$output = '';
foreach ($this->ao->groups() as $go)
$output .= sprintf('Group %s: %s<br/>',$go->id,$go->display('name'));
Block::factory()
->title('Group Structure')
->body($output);
// List all available methods for this user.
$output = '';
foreach ($this->ao->methods() as $mmo)
$output .= sprintf('Module: %s, Method %s: %s<br/>',$mmo->module->name,$mmo->name,$mmo->url());
Block::factory()
->title('Available Methods')
->body($output);
}
}
?>

View File

@@ -95,6 +95,8 @@ class Controller_Admin_Module extends Controller_Module {
$id = $this->request->param('id');
$mo = ORM::factory('Module',$id);
$this->meta->title = 'Module: '.$mo->name();
$methods = array();
if (! $mo->loaded()) {
@@ -171,6 +173,8 @@ class Controller_Admin_Module extends Controller_Module {
* List our installed modules
*/
public function action_list() {
$this->meta->title = 'Module List';
Block::factory()
->title('Defined Modules')
->title_icon('fa fa-cog')

View File

@@ -25,13 +25,13 @@ class Controller_Admin_Setup extends Controller_TemplateDefault {
Block::factory()
->title('Update Site Configuration')
->title_icon('icon-wrench')
->title_icon('fa fa-wrench')
->type('form-horizontal')
->body(View::factory('setup/admin/edit')->set('o',$o));
Block::factory()
->title('Update Module Configuration')
->title_icon('icon-wrench')
->title_icon('fa fa-wrench')
->type('form-horizontal')
->body(View::factory('setup/admin/module')->set('o',$o)->set('mid',NULL));
}

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

View File

@@ -12,24 +12,15 @@
class Controller_Welcome extends Controller_TemplateDefault {
protected $auth_required = FALSE;
public function action_breadcrumb() {
$this->auto_render = FALSE;
$this->response->body(Session::instance()->get_once('breadcrumb'));
}
public function action_index() {
if (! Kohana::$config->load('config')->appname)
HTTP::redirect('guide/app');
$output = '';
$output = View::factory('pages/welcome');
Style::factory()
->type('file')
->data('media/css/pages/welcome.css');
$this->template->content = $output;
$this->template->content = View::factory('pages/welcome');
}
}
?>