class SiteController < ApplicationController
- layout 'site', :except => [:key, :permalink]
- layout false, :only => [:key, :permalink]
+ layout 'site'
+ layout :map_layout, :only => [:index, :export]
before_filter :authorize_web
before_filter :set_locale
def key
expires_in 7.days, :public => true
+ render :layout => false
end
def edit
return
end
- @extra_body_class = "site-edit-#{editor}"
-
if params[:node]
bbox = Node.find(params[:node]).bbox.to_unscaled
@lat = bbox.centre_lat