]> git.openstreetmap.org Git - rails.git/commitdiff
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 28e467fb4ebc84b376b53da39f6f4e7332f77701..7b34d204a96c3edbb5a0ab2b55944be7d647aaa6 100644 (file)
@@ -28,7 +28,7 @@
 </p>
 <% end %>
 
 </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>
 
 
 <p><b><%= t ".status" %></b>: <%= block_status(@user_block) %></p>
 
index 30f15d806d11874f5d814857f8787a5107449223..a88c3538260698d672a50547ac29d30bc9da872c 100644 (file)
@@ -2401,7 +2401,6 @@ en:
       title: "%{block_on} blocked by %{block_by}"
       heading: "%{block_on} blocked by %{block_by}"
       created: "Created"
       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"
       status: "Status"
       show: "Show"
       edit: "Edit"