Changed inherited controller in module_apps to OrbitBackendController

This commit is contained in:
Christophe Vilayphiou 2012-03-27 18:04:09 +08:00
parent d02bbdbaa5
commit cf297fc424
7 changed files with 4 additions and 16 deletions

View File

@ -6,7 +6,7 @@ class OrbitBackendController< ApplicationController
include OrbitCoreLib::PermissionUnility include OrbitCoreLib::PermissionUnility
include AdminHelper include AdminHelper
layout 'admin' layout 'new_admin'
def setup_vars def setup_vars
@app_title = request.fullpath.split('/')[2] @app_title = request.fullpath.split('/')[2]

View File

@ -1,7 +1,5 @@
class Panel::Announcement::BackEnd::BulletinCategorysController < OrbitBackendController class Panel::Announcement::BackEnd::BulletinCategorysController < OrbitBackendController
layout 'new_admin'
def index def index
@bulletin_categorys = BulletinCategory.all @bulletin_categorys = BulletinCategory.all
@bulletin_category = BulletinCategory.new(:display => 'List') @bulletin_category = BulletinCategory.new(:display => 'List')

View File

@ -1,5 +1,4 @@
class Panel::Announcement::BackEnd::BulletinsController < OrbitBackendController class Panel::Announcement::BackEnd::BulletinsController < OrbitBackendController
layout 'new_admin'
before_filter :authenticate_user! before_filter :authenticate_user!
before_filter :is_admin? before_filter :is_admin?

View File

@ -2,7 +2,6 @@ class Panel::Announcement::BackEnd::FactChecksController < OrbitBackendControll
before_filter :authenticate_user! before_filter :authenticate_user!
include AdminHelper include AdminHelper
# layout 'admin' # layout 'admin'
layout 'new_admin'
def setting def setting
@bulletin_categorys = BulletinCategory.all @bulletin_categorys = BulletinCategory.all

View File

@ -1,7 +1,4 @@
class Panel::PageContent::BackEnd::PageContextsController < ApplicationController class Panel::PageContent::BackEnd::PageContextsController < OrbitBackendController
layout 'new_admin'
before_filter :authenticate_user! before_filter :authenticate_user!
before_filter :is_admin? before_filter :is_admin?

View File

@ -1,6 +1,4 @@
class Panel::WebResource::BackEnd::WebLinkCategorysController < ApplicationController class Panel::WebResource::BackEnd::WebLinkCategorysController < OrbitBackendController
layout 'new_admin'
def index def index
@web_link_categorys = WebLinkCategory.all @web_link_categorys = WebLinkCategory.all

View File

@ -1,7 +1,4 @@
class Panel::WebResource::BackEnd::WebLinksController < ApplicationController class Panel::WebResource::BackEnd::WebLinksController < OrbitBackendController
layout 'new_admin'
before_filter :authenticate_user! before_filter :authenticate_user!
before_filter :is_admin? before_filter :is_admin?