Skip to content
Snippets Groups Projects
Commit a1d91be3 authored by galegosimpatico's avatar galegosimpatico
Browse files

Minify the last edit fuzzy date.

parent 698328fc
No related branches found
No related tags found
No related merge requests found
...@@ -131,7 +131,8 @@ ...@@ -131,7 +131,8 @@
   
<% end %> <% end %>
<% if been_edited then %> <% if been_edited then %>
<i class="fa fa-pencil-alt" title="Edited"></i> <%= time_ago_in_words(post.last_activity) %> ago <i class="fa fa-pencil-alt" title="Edited"></i>
<%= time_ago_in_words(post.last_activity, locale: :en_abbrev) %> ago
<% if not last_edited_by_self then %> <% if not last_edited_by_self then %>
by <%= link_to post.last_activity_by.username, user_path(post.last_activity_by_id) %> by <%= link_to post.last_activity_by.username, user_path(post.last_activity_by_id) %>
<% end %> <% end %>
......
en_abbrev:
datetime:
distance_in_words:
x_minutes:
one: "1m"
other: "%{count}m"
about_x_hours:
other: "~%{count}h"
x_days:
one: "1d"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment