Use friendly_date_ago for user blocks
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 19 Jun 2019 10:09:46 +0000 (12:09 +0200)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 19 Jun 2019 16:04:08 +0000 (18:04 +0200)
Refs #2255

app/views/user_blocks/show.html.erb
config/locales/en.yml

index 28e467f..7b34d20 100644 (file)
@@ -28,7 +28,7 @@
 </p>
 <% end %>
 
-<p><b><%= t ".created" %></b>: <%= raw t ".ago", :time => friendly_date(@user_block.created_at) %></p>
+<p><b><%= t ".created" %></b>: <%= friendly_date_ago(@user_block.created_at) %></p>
 
 <p><b><%= t ".status" %></b>: <%= block_status(@user_block) %></p>
 
index 30f15d8..a88c353 100644 (file)
@@ -2401,7 +2401,6 @@ en:
       title: "%{block_on} blocked by %{block_by}"
       heading: "%{block_on} blocked by %{block_by}"
       created: "Created"
-      ago: "%{time} ago"
       status: "Status"
       show: "Show"
       edit: "Edit"