diff --git a/app/helpers/action_tracker_helper.rb b/app/helpers/action_tracker_helper.rb index e6f8a66..7d13a5b 100644 --- a/app/helpers/action_tracker_helper.rb +++ b/app/helpers/action_tracker_helper.rb @@ -67,19 +67,19 @@ module ActionTrackerHelper } end - def create_product_description + def create_product_description ta _('created the product %{title}') % { title: link_to(truncate(ta.get_name), ta.get_url), } end - def update_product_description + def update_product_description ta _('updated the product %{title}') % { title: link_to(truncate(ta.get_name), ta.get_url), } end - def remove_product_description + def remove_product_description ta _('removed the product %{title}') % { title: truncate(ta.get_name), } diff --git a/app/views/profile/_create_product.html.erb b/app/views/profile/_create_product.html.erb index d7021d3..094309f 100644 --- a/app/views/profile/_create_product.html.erb +++ b/app/views/profile/_create_product.html.erb @@ -3,7 +3,7 @@
<%= link_to activity.user.short_name(nil), activity.user.url %> <%= describe activity %>
-<%= time_ago_as_sentence activity.created_at %>
+<%= time_ago_in_words activity.created_at %>
<%= link_to activity.user.short_name(nil), activity.user.url %> <%= describe activity %>
-<%= time_ago_as_sentence activity.created_at %>
+<%= time_ago_in_words activity.created_at %>
<%= link_to activity.user.short_name(nil), activity.user.url %> <%= describe activity %>
-<%= time_ago_as_sentence activity.created_at %>
+<%= time_ago_in_words activity.created_at %>
<%= link_to activity.user.short_name(nil), activity.user.url %> <%= describe activity %>
-<%= time_ago_as_sentence activity.created_at %>
+<%= time_ago_in_words activity.created_at %>