]> git.openstreetmap.org Git - rails.git/blob - app/views/site/_potlatch.html.erb
Merge remote-tracking branch 'upstream/pull/2452'
[rails.git] / app / views / site / _potlatch.html.erb
1 <%= javascript_include_tag "edit/potlatch" %>
2
3 <div id="map">
4   <% session[:token] = current_user.tokens.create.token unless session[:token] && UserToken.find_by(:token => session[:token]) -%>
5   <% data = { :token => session[:token] } -%>
6   <% data[:lat] = @lat if @lat -%>
7   <% data[:lon] = @lon if @lon -%>
8   <% data[:zoom] = @zoom if @zoom -%>
9   <%= content_tag :div, raw(t("site.edit.flash_player_required")), :id => "potlatch", :data => data %>
10 </div>