From: Andy Allan Date: Wed, 19 Jun 2019 10:09:46 +0000 (+0200) Subject: Use friendly_date_ago for user blocks X-Git-Tag: live~3063^2~2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/e5d8bd539f045db1870a4722290f75b11cf4d2e0?hp=75bf96c4f3472a21163032a25ff7700d3c692225 Use friendly_date_ago for user blocks Refs #2255 --- diff --git a/app/views/user_blocks/show.html.erb b/app/views/user_blocks/show.html.erb index 28e467fb4..7b34d204a 100644 --- a/app/views/user_blocks/show.html.erb +++ b/app/views/user_blocks/show.html.erb @@ -28,7 +28,7 @@

<% end %> -

<%= t ".created" %>: <%= raw t ".ago", :time => friendly_date(@user_block.created_at) %>

+

<%= t ".created" %>: <%= friendly_date_ago(@user_block.created_at) %>

<%= t ".status" %>: <%= block_status(@user_block) %>

diff --git a/config/locales/en.yml b/config/locales/en.yml index 30f15d806..a88c35382 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -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"