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
|
||||
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
|
||||
|
@ -20,3 +20,8 @@
|
||||
height: 60em
|
||||
margin: 1.6em 2%
|
||||
display: inline-block
|
||||
|
||||
html.iframe #map
|
||||
width: 100%
|
||||
max-width: 100%
|
||||
+box-shadow(none)
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user