La carte peut maintenant être affichée dans une iframe, avec le paramètre iframe=true

This commit is contained in:
echarp 2014-11-08 14:15:07 +01:00
parent d7f1402cb3
commit 1789cc7c63
3 changed files with 9 additions and 2 deletions

View File

@ -19,8 +19,10 @@ html
background-color: transparent
body
border: none
margin: 0
padding: 0
background-color: transparent
.region_selector, .lug_search, .formats, #banner
h2, nav, .region_selector, .lug_search, .formats, #banner
display: none
body

View File

@ -20,3 +20,8 @@
height: 60em
margin: 1.6em 2%
display: inline-block
html.iframe #map
width: 100%
max-width: 100%
+box-shadow(none)

View File

@ -6,7 +6,7 @@ class MapsController < ApplicationController
def index
respond_to do |format|
format.html
format.html { render layout: 'iframe' if params[:iframe] }
format.json { render json: apply_scopes(Event.moderated.future.geo) }
end
end