X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/565171486f6d90321e0291d5ccc3cf6a1c12e730..31778fd1554d0c23298c92fb62c2277200e31e61:/app/views/trace/view.html.erb diff --git a/app/views/trace/view.html.erb b/app/views/trace/view.html.erb index 47a9f8ad2..fac0139d9 100644 --- a/app/views/trace/view.html.erb +++ b/app/views/trace/view.html.erb @@ -1,19 +1,23 @@ -
<%= t'trace.view.filename' %> | <%= @trace.name %> (<%= link_to t('trace.view.download'), :controller => 'trace', :action => 'data', :id => @trace.id %>) | -||
<%= t'trace.view.uploaded' %> | -<%= l @trace.timestamp %> | +<%= l @trace.timestamp, :format => :friendly %> | |
<%= @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}" %>) |
|
<%= t'trace.view.tags' %> |
<% unless @trace.tags.empty? %>
- <%= @trace.tags.collect { |tag| link_to tag.tag, { :controller => 'trace', :action => 'list', :tag => tag.tag, :id => nil } }.join(", ") %>
+ <%= raw(@trace.tags.collect { |tag| link_to tag.tag, { :controller => 'trace', :action => 'list', :tag => tag.tag, :id => nil } }.join(", ")) %>
<% else %>
<%= t'trace.view.none' %>
<% end %>
@@ -50,13 +54,9 @@
-
|