La carte peut maintenant être affichée dans une iframe, avec le paramètre iframe=true
This commit is contained in:
parent
d7f1402cb3
commit
1789cc7c63
|
@ -19,8 +19,10 @@ html
|
||||||
background-color: transparent
|
background-color: transparent
|
||||||
body
|
body
|
||||||
border: none
|
border: none
|
||||||
|
margin: 0
|
||||||
|
padding: 0
|
||||||
background-color: transparent
|
background-color: transparent
|
||||||
.region_selector, .lug_search, .formats, #banner
|
h2, nav, .region_selector, .lug_search, .formats, #banner
|
||||||
display: none
|
display: none
|
||||||
|
|
||||||
body
|
body
|
||||||
|
|
|
@ -20,3 +20,8 @@
|
||||||
height: 60em
|
height: 60em
|
||||||
margin: 1.6em 2%
|
margin: 1.6em 2%
|
||||||
display: inline-block
|
display: inline-block
|
||||||
|
|
||||||
|
html.iframe #map
|
||||||
|
width: 100%
|
||||||
|
max-width: 100%
|
||||||
|
+box-shadow(none)
|
||||||
|
|
|
@ -6,7 +6,7 @@ class MapsController < ApplicationController
|
||||||
|
|
||||||
def index
|
def index
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.html
|
format.html { render layout: 'iframe' if params[:iframe] }
|
||||||
format.json { render json: apply_scopes(Event.moderated.future.geo) }
|
format.json { render json: apply_scopes(Event.moderated.future.geo) }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue