2012-01-09 14:49:59 +00:00
|
|
|
module Locomotive
|
|
|
|
module Public
|
2012-01-16 22:59:59 +00:00
|
|
|
class PagesController < ApplicationController
|
2012-01-09 14:49:59 +00:00
|
|
|
|
|
|
|
include Locomotive::Routing::SiteDispatcher
|
|
|
|
|
|
|
|
include Locomotive::Render
|
|
|
|
|
|
|
|
before_filter :require_site
|
|
|
|
|
2012-01-17 01:53:49 +00:00
|
|
|
before_filter :authenticate_locomotive_account!, :only => [:show_toolbar]
|
2012-01-09 14:49:59 +00:00
|
|
|
|
2012-01-17 01:53:49 +00:00
|
|
|
before_filter :validate_site_membership, :only => [:show_toolbar]
|
|
|
|
|
|
|
|
def show_toolbar
|
|
|
|
render :layout => false
|
|
|
|
end
|
2012-01-09 14:49:59 +00:00
|
|
|
|
|
|
|
def show
|
|
|
|
render_locomotive_page
|
|
|
|
end
|
|
|
|
|
|
|
|
def edit
|
2012-01-17 01:53:49 +00:00
|
|
|
@editing = true
|
|
|
|
render_locomotive_page
|
2012-01-09 14:49:59 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|