This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
2011-08-22 05:45:21 +00:00
|
|
|
class Admin::SitesController < ApplicationController
|
2011-04-13 10:19:51 +00:00
|
|
|
|
2012-05-06 16:54:18 +00:00
|
|
|
layout "new_admin"
|
2011-08-22 05:45:21 +00:00
|
|
|
before_filter :authenticate_user!
|
|
|
|
before_filter :is_admin?
|
2012-05-06 16:54:18 +00:00
|
|
|
before_filter :get_site
|
2011-04-13 10:19:51 +00:00
|
|
|
|
2012-05-06 16:54:18 +00:00
|
|
|
# def index
|
|
|
|
# @site = Site.first
|
|
|
|
# # redirect_to :action => :new unless @site
|
|
|
|
# end
|
2011-04-13 10:19:51 +00:00
|
|
|
|
2012-05-06 16:54:18 +00:00
|
|
|
# def new
|
|
|
|
# @site = Site.new
|
|
|
|
# end
|
|
|
|
|
|
|
|
def update
|
|
|
|
@site.update_attributes(params[:site])
|
|
|
|
redirect_to :back
|
|
|
|
end
|
|
|
|
|
|
|
|
def site_info
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
def system_info
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
def language
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
def mail_setting
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
def ui_theme
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
def get_site
|
|
|
|
@site ||= Site.first
|
2011-04-13 10:19:51 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|