Added meta title to pages
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
@@ -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')
|
||||
|
@@ -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));
|
||||
}
|
||||
|
@@ -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);
|
||||
}
|
||||
}
|
||||
|
@@ -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');
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
Reference in New Issue
Block a user