]> git.openstreetmap.org Git - rails.git/commitdiff
Use distance_in_words_ago scope for user blocks
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 19 Jun 2019 09:44:29 +0000 (11:44 +0200)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 19 Jun 2019 16:04:08 +0000 (18:04 +0200)
Refs #2255

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

index 44da21d85b303f8bf968712888f704440637afed..9bd7df5aed930cfdd81825fc1002aa494e44e785 100644 (file)
@@ -28,6 +28,6 @@
 
 <% else %>
 <p>
-  <%= t(".past", :time => distance_of_time_in_words_to_now(@user_block.ends_at)) %>
+  <%= t(".past", :time => time_ago_in_words(@user_block.ends_at, :scope => :'datetime.distance_in_words_ago')) %>
 </p>
 <% end %>
index 897e5f7c07e0ac4a7bccaaa9449a485961decfa0..f49f05746719b626e513a3d3e23d406391a8ce67 100644 (file)
@@ -2364,7 +2364,7 @@ en:
       title: "Revoking block on %{block_on}"
       heading: "Revoking block on %{block_on} by %{block_by}"
       time_future: "This block will end in %{time}."
-      past: "This block ended %{time} ago and cannot be revoked now."
+      past: "This block ended %{time} and cannot be revoked now."
       confirm: "Are you sure you wish to revoke this block?"
       revoke: "Revoke!"
       flash: "This block has been revoked."