Use the distance_in_words_ago scope for trace display

Refs #2255
This commit is contained in:
Andy Allan 2019-06-19 11:23:43 +02:00
parent 74af87d9d1
commit 1298d80549
2 changed files with 1 additions and 2 deletions

View file

@ -14,7 +14,7 @@
<% if trace.inserted %>
(<%= t ".count_points", :count => trace.size.to_s.gsub(/(\d)(?=(\d{3})+$)/, '\1,') %>)
<% end %>
... <%= t ".ago", :time_in_words_ago => time_ago_in_words(trace.timestamp) %></span>
... <%= time_ago_in_words(trace.timestamp, :scope => :'datetime.distance_in_words_ago') %></span>
<%= link_to_if trace.inserted?, t(".map"), { :controller => "site", :action => "index", :mlat => trace.latitude, :mlon => trace.longitude, :anchor => "map=14/#{trace.latitude}/#{trace.longitude}" }, { :title => t(".view_map") } %> /
<%= link_to t(".edit"), { :controller => "site", :action => "edit", :gpx => trace.id }, { :title => t(".edit_map") } %>
<span class="trace_<%= trace.visibility %>"><%= t("." + trace.visibility) %></span>

View file

@ -1857,7 +1857,6 @@ en:
trace:
pending: "PENDING"
count_points: "%{count} points"
ago: "%{time_in_words_ago} ago"
more: "more"
trace_details: "View Trace Details"
view_map: "View Map"