From: Tom Hughes Date: Thu, 13 Mar 2014 13:19:50 +0000 (+0000) Subject: Generate a new style links for node locations in the data browser X-Git-Tag: live~4488 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/54890300a44501ad98c9da06b4c27235256e24bf?ds=inline Generate a new style links for node locations in the data browser --- diff --git a/app/views/browse/_common_details.html.erb b/app/views/browse/_common_details.html.erb index 971e467aa..9ef16ecb2 100644 --- a/app/views/browse/_common_details.html.erb +++ b/app/views/browse/_common_details.html.erb @@ -26,7 +26,7 @@ <% if @type == "node" and common_details.visible? %>
<%= t 'browse.location' %> - <%= link_to(content_tag(:span, number_with_delimiter(common_details.lat), :class => "latitude") + ", " + content_tag(:span, number_with_delimiter(common_details.lon), :class => "longitude"), {:controller => 'site', :action => 'index', :lat => h(common_details.lat), :lon => h(common_details.lon), :zoom => "18"}) %> + <%= link_to(content_tag(:span, number_with_delimiter(common_details.lat), :class => "latitude") + ", " + content_tag(:span, number_with_delimiter(common_details.lon), :class => "longitude"), {:controller => 'site', :action => 'index', :anchor => "18/#{common_details.lat}/#{common_details.lon}"}) %>
<% end %>