From 02bfc46ab38b86d94aa7617853e69ac6d307fb1e Mon Sep 17 00:00:00 2001 From: Andy Allan Date: Wed, 28 Apr 2021 16:01:03 +0100 Subject: [PATCH] Move duration to its own line, so that it can be clearly labelled --- app/views/user_blocks/show.html.erb | 7 +++---- config/locales/en.yml | 1 + 2 files changed, 4 insertions(+), 4 deletions(-) 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" -- 2.39.5