before_filter :authorize_web
before_filter :set_locale
- before_filter :require_user, :only => [:edit]
+ before_filter :require_user, :only => [:edit, :welcome]
before_filter :require_oauth, :only => [:index]
def index
return
end
+ @extra_body_class = "site-edit-#{editor}"
+
if params[:node]
bbox = Node.find(params[:node]).bbox.to_unscaled
@lat = bbox.centre_lat
@locale = params[:copyright_locale] || I18n.locale
end
+ def welcome
+ end
+
def preview
render :text => RichText.new(params[:format], params[:text]).to_html
end