From: Andy Allan Date: Wed, 28 Apr 2021 15:01:03 +0000 (+0100) Subject: Move duration to its own line, so that it can be clearly labelled X-Git-Tag: live~2113^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/02bfc46ab38b86d94aa7617853e69ac6d307fb1e Move duration to its own line, so that it can be clearly labelled --- diff --git a/app/views/user_blocks/show.html.erb b/app/views/user_blocks/show.html.erb index 1b5609e25..0204908dd 100644 --- a/app/views/user_blocks/show.html.erb +++ b/app/views/user_blocks/show.html.erb @@ -28,10 +28,9 @@

<% end %> -

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

+

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

+ +

<%= t ".duration" %>: <%= block_duration_in_words(@user_block.ends_at - @user_block.created_at) %>

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

diff --git a/config/locales/en.yml b/config/locales/en.yml index 62fc7bc6a..f075fd00b 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -2607,6 +2607,7 @@ en: title: "%{block_on} blocked by %{block_by}" heading_html: "%{block_on} blocked by %{block_by}" created: "Created" + duration: "Duration" status: "Status" show: "Show" edit: "Edit"