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
|
|
|
|
2011-08-22 05:45:21 +00:00
|
|
|
layout "admin"
|
|
|
|
before_filter :authenticate_user!
|
|
|
|
before_filter :is_admin?
|
2011-04-13 10:19:51 +00:00
|
|
|
|
|
|
|
def index
|
|
|
|
@site = Site.first
|
2011-08-18 05:43:33 +00:00
|
|
|
redirect_to :action => :new unless @site
|
2011-04-13 10:19:51 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def new
|
|
|
|
@site = Site.new
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|