From cf297fc4247c2c19ba0e5deb09151e958b636959 Mon Sep 17 00:00:00 2001 From: Christophe Vilayphiou Date: Tue, 27 Mar 2012 18:04:09 +0800 Subject: [PATCH] Changed inherited controller in module_apps to OrbitBackendController --- app/controllers/orbit_backend_controller.rb | 2 +- .../announcement/back_end/bulletin_categorys_controller.rb | 2 -- .../panel/announcement/back_end/bulletins_controller.rb | 1 - .../panel/announcement/back_end/fact_checks_controller.rb | 1 - .../panel/page_content/back_end/page_contexts_controller.rb | 5 +---- .../web_resource/back_end/web_link_categorys_controller.rb | 4 +--- .../panel/web_resource/back_end/web_links_controller.rb | 5 +---- 7 files changed, 4 insertions(+), 16 deletions(-) diff --git a/app/controllers/orbit_backend_controller.rb b/app/controllers/orbit_backend_controller.rb index c71bbf15..fe37db82 100644 --- a/app/controllers/orbit_backend_controller.rb +++ b/app/controllers/orbit_backend_controller.rb @@ -6,7 +6,7 @@ class OrbitBackendController< ApplicationController include OrbitCoreLib::PermissionUnility include AdminHelper - layout 'admin' + layout 'new_admin' def setup_vars @app_title = request.fullpath.split('/')[2] diff --git a/vendor/built_in_modules/announcement/app/controllers/panel/announcement/back_end/bulletin_categorys_controller.rb b/vendor/built_in_modules/announcement/app/controllers/panel/announcement/back_end/bulletin_categorys_controller.rb index 97378c5a..0e3894b9 100644 --- a/vendor/built_in_modules/announcement/app/controllers/panel/announcement/back_end/bulletin_categorys_controller.rb +++ b/vendor/built_in_modules/announcement/app/controllers/panel/announcement/back_end/bulletin_categorys_controller.rb @@ -1,7 +1,5 @@ class Panel::Announcement::BackEnd::BulletinCategorysController < OrbitBackendController - layout 'new_admin' - def index @bulletin_categorys = BulletinCategory.all @bulletin_category = BulletinCategory.new(:display => 'List') diff --git a/vendor/built_in_modules/announcement/app/controllers/panel/announcement/back_end/bulletins_controller.rb b/vendor/built_in_modules/announcement/app/controllers/panel/announcement/back_end/bulletins_controller.rb index 31b3b4a2..d02d5035 100644 --- a/vendor/built_in_modules/announcement/app/controllers/panel/announcement/back_end/bulletins_controller.rb +++ b/vendor/built_in_modules/announcement/app/controllers/panel/announcement/back_end/bulletins_controller.rb @@ -1,5 +1,4 @@ class Panel::Announcement::BackEnd::BulletinsController < OrbitBackendController - layout 'new_admin' before_filter :authenticate_user! before_filter :is_admin? diff --git a/vendor/built_in_modules/announcement/app/controllers/panel/announcement/back_end/fact_checks_controller.rb b/vendor/built_in_modules/announcement/app/controllers/panel/announcement/back_end/fact_checks_controller.rb index 9095a4d3..606225e9 100644 --- a/vendor/built_in_modules/announcement/app/controllers/panel/announcement/back_end/fact_checks_controller.rb +++ b/vendor/built_in_modules/announcement/app/controllers/panel/announcement/back_end/fact_checks_controller.rb @@ -2,7 +2,6 @@ class Panel::Announcement::BackEnd::FactChecksController < OrbitBackendControll before_filter :authenticate_user! include AdminHelper # layout 'admin' - layout 'new_admin' def setting @bulletin_categorys = BulletinCategory.all diff --git a/vendor/built_in_modules/page_content/app/controllers/panel/page_content/back_end/page_contexts_controller.rb b/vendor/built_in_modules/page_content/app/controllers/panel/page_content/back_end/page_contexts_controller.rb index efde60c8..10a33236 100644 --- a/vendor/built_in_modules/page_content/app/controllers/panel/page_content/back_end/page_contexts_controller.rb +++ b/vendor/built_in_modules/page_content/app/controllers/panel/page_content/back_end/page_contexts_controller.rb @@ -1,7 +1,4 @@ -class Panel::PageContent::BackEnd::PageContextsController < ApplicationController - - - layout 'new_admin' +class Panel::PageContent::BackEnd::PageContextsController < OrbitBackendController before_filter :authenticate_user! before_filter :is_admin? diff --git a/vendor/built_in_modules/web_resource/app/controllers/panel/web_resource/back_end/web_link_categorys_controller.rb b/vendor/built_in_modules/web_resource/app/controllers/panel/web_resource/back_end/web_link_categorys_controller.rb index f023995b..46e8933f 100644 --- a/vendor/built_in_modules/web_resource/app/controllers/panel/web_resource/back_end/web_link_categorys_controller.rb +++ b/vendor/built_in_modules/web_resource/app/controllers/panel/web_resource/back_end/web_link_categorys_controller.rb @@ -1,6 +1,4 @@ -class Panel::WebResource::BackEnd::WebLinkCategorysController < ApplicationController - - layout 'new_admin' +class Panel::WebResource::BackEnd::WebLinkCategorysController < OrbitBackendController def index @web_link_categorys = WebLinkCategory.all diff --git a/vendor/built_in_modules/web_resource/app/controllers/panel/web_resource/back_end/web_links_controller.rb b/vendor/built_in_modules/web_resource/app/controllers/panel/web_resource/back_end/web_links_controller.rb index 064a6d46..e2b681b9 100644 --- a/vendor/built_in_modules/web_resource/app/controllers/panel/web_resource/back_end/web_links_controller.rb +++ b/vendor/built_in_modules/web_resource/app/controllers/panel/web_resource/back_end/web_links_controller.rb @@ -1,7 +1,4 @@ -class Panel::WebResource::BackEnd::WebLinksController < ApplicationController - - - layout 'new_admin' +class Panel::WebResource::BackEnd::WebLinksController < OrbitBackendController before_filter :authenticate_user! before_filter :is_admin?