creating for disabling widgets and frontend

This commit is contained in:
Matthew Fu committed 2012-01-05 16:21:33 +08:00
1 parent 7b40706aed
commit 79f778ad8c
9 files changed
+56 -9

No files matched your search

@@ -1,6 +1,10 @@
class Panel::Blog::FrontEnd::PostsController < ApplicationController
class Panel::Blog::FrontEnd::PostsController < ObitWidgetController
layout 'production'
def initialize
super
@app_title = NewBlog::MOUDLEAPP_TITLE
end
# GET /posts
# GET /posts.xml
@@ -1,7 +1,12 @@
class Panel::Blog::Widget::PostsController < ApplicationController
class Panel::Blog::Widget::PostsController < ObitWidgetController
layout 'production'
def initialize
super
@app_title = NewBlog::MOUDLEAPP_TITLE
end
# GET /posts
# GET /posts.xml
def index
@@ -1,2 +1,6 @@
module ApplicationHelper
def check_show_frontend
front_end_available(NewBlog::MOUDLEAPP_TITLE)
end
end
@@ -0,0 +1,5 @@
module NewBlogHelper
def self.check_show_frontend
ApplicationController.front_end_available(NewBlog::MOUDLEAPP_TITLE)
end
end