Skip to content

Commit

Permalink
Use the distance_in_words_ago scope for trace display
Browse files Browse the repository at this point in the history
  • Loading branch information
gravitystorm committed Jun 19, 2019
1 parent 74af87d commit 1298d80
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/traces/_trace.html.erb
Expand Up @@ -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>
Expand Down
1 change: 0 additions & 1 deletion config/locales/en.yml
Expand Up @@ -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"
Expand Down

0 comments on commit 1298d80

Please sign in to comment.