fronted open switch and backend openness

This commit is contained in:
Matt K. Fu committed 2013-04-23 18:48:18 +08:00
1 parent 11067ef34f
commit 5ff7dfbac6
14 files changed
+56 -10

No files matched your search

@@ -5,8 +5,9 @@ class Admin::DashboardsController < OrbitBackendController
# before_filter :is_admin?
def index
@module_app_contents, @module_app_contents_total = get_module_app_count('bulletin', 'page_context', 'web_link')
@recent_updated = get_recently_updated('bulletin', 'page_context', 'web_link')
check_backend_openness
@module_app_contents, @module_app_contents_total = get_module_app_count('bulletin', 'page_context', 'web_link')
@recent_updated = get_recently_updated('bulletin', 'page_context', 'web_link')
@most_visited = get_most_visited('bulletin', 'page_context')
end
@@ -16,6 +16,7 @@ class Admin::SitesController < OrbitBackendController
def update
@site.update_attributes(params[:site])
site_restart
redirect_to :back
end