From: Tom Hughes Date: Thu, 13 Mar 2014 16:02:50 +0000 (+0000) Subject: Fix more links to use new style #map links X-Git-Tag: live~4432 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/d79b286723145c2dfe72ca922bee6578ef1e2939 Fix more links to use new style #map links --- diff --git a/app/views/diary_entry/_location.html.erb b/app/views/diary_entry/_location.html.erb index a3ba473a8..a5db0cdca 100644 --- a/app/views/diary_entry/_location.html.erb +++ b/app/views/diary_entry/_location.html.erb @@ -1,6 +1,6 @@ <%= t 'diary_entry.location.location' %> - +"> <%= describe_location location.latitude, location.longitude, 14, location.language_code %> diff --git a/app/views/trace/_trace.html.erb b/app/views/trace/_trace.html.erb index c05e00c4a..99d570cf0 100644 --- a/app/views/trace/_trace.html.erb +++ b/app/views/trace/_trace.html.erb @@ -16,7 +16,7 @@ <% end %> ... <%= t'trace.trace.ago', :time_in_words_ago => time_ago_in_words(trace.timestamp) %> <%= link_to t('trace.trace.more'), {:controller => 'trace', :action => 'view', :display_name => trace.user.display_name, :id => trace.id}, {:title => t('trace.trace.trace_details')} %> / - <%= link_to_if trace.inserted?, t('trace.trace.map'), {:controller => 'site', :action => 'index', :lat => trace.latitude, :lon => trace.longitude, :zoom => 14}, {:title => t('trace.trace.view_map')} %> / + <%= link_to_if trace.inserted?, t('trace.trace.map'), {:controller => 'site', :action => 'index', :anchor => "map=14/#{trace.latitude}/#{trace.longitude}"}, {:title => t('trace.trace.view_map')} %> / <%= link_to t('trace.trace.edit'), {:controller => 'site', :action => 'edit', :gpx => trace.id }, {:title => t('trace.trace.edit_map')} %> <%= t('trace.trace.' + trace.visibility) %>
diff --git a/app/views/trace/edit.html.erb b/app/views/trace/edit.html.erb index d9ec9f14b..200f6aa26 100644 --- a/app/views/trace/edit.html.erb +++ b/app/views/trace/edit.html.erb @@ -32,7 +32,7 @@ <%= @trace.latitude %>; <%= @trace.longitude %> - (<%=link_to t('trace.edit.map'), :controller => 'site', :action => 'index', :lat => @trace.latitude, :lon => @trace.longitude, :zoom => 14 %> / <%=link_to t('trace.edit.edit'), :controller => 'site', :action => 'edit', :lat => @trace.latitude, :lon => @trace.longitude, :gpx=> @trace.id, :zoom => 14 %>) + (<%=link_to t('trace.edit.map'), :controller => 'site', :action => 'index', :anchor => "map=14/#{@trace.latitude}/#{@trace.longitude}" %> / <%=link_to t('trace.edit.edit'), :controller => 'site', :action => 'edit', :gpx=> @trace.id, :anchor => "map=14/#{@trace.latitude}/#{@trace.longitude}" %>) <% end %> diff --git a/app/views/trace/view.html.erb b/app/views/trace/view.html.erb index cbe6c1628..fac0139d9 100644 --- a/app/views/trace/view.html.erb +++ b/app/views/trace/view.html.erb @@ -25,7 +25,7 @@ <%= @trace.size.to_s.gsub(/(\d)(?=(\d{3})+$)/,'\1,') %> <%= t'trace.view.start_coordinates' %> -
<%= @trace.latitude %>; <%= @trace.longitude %>
(<%=link_to t('trace.view.map'), :controller => 'site', :action => 'index', :lat => @trace.latitude, :lon => @trace.longitude, :zoom => 14 %> / <%=link_to t('trace.view.edit'), :controller => 'site', :action => 'edit', :lat => @trace.latitude, :lon => @trace.longitude, :gpx=> @trace.id, :zoom => 14 %>) +
<%= @trace.latitude %>; <%= @trace.longitude %>
(<%=link_to t('trace.view.map'), :controller => 'site', :action => 'index', :anchor => "map=14/#{@trace.latitude}/#{@trace.longitude}" %> / <%=link_to t('trace.view.edit'), :controller => 'site', :action => 'edit', :gpx=> @trace.id, :anchor => "map=14/#{@trace.latitude}/#{@trace.longitude}" %>) <% end %>