class SiteController < ApplicationController
layout 'site'
- layout 'map', :only => [:index, :export]
+ layout :map_layout, :only => [:index, :export]
before_filter :authorize_web
before_filter :set_locale
editor = preferred_editor
if editor == "remote"
+ require_oauth
render :action => :index
return
end
- @extra_body_class = "site-edit-#{editor}"
-
if params[:node]
bbox = Node.find(params[:node]).bbox.to_unscaled
@lat = bbox.centre_lat