openstreetmap-website/app/views/site/_id.html.erb
Harry Wood 51b7c3a5be More readable multi-line ruby in erbs
A couple of erb files had unnecessary start and end erb tags around every line in a multi-line block of ruby. More readable this way.
2022-03-05 02:56:43 +00:00

10 lines
423 B
Text

<%= javascript_include_tag "edit/id" %>
<div id="map">
<% data = { :key => Settings.id_key }
data[:lat] = @lat if @lat
data[:lon] = @lon if @lon
data[:gpx] = trace_data_url(params[:gpx], :format => :xml) if params[:gpx]
data[:url] = id_url(:locale => params[:locale]) %>
<%= tag.iframe "", :frameBorder => 0, :id => "id-embed", :class => "id-embed", :allowfullscreen => "", :data => data %>
</div>