From b4e2f8e34f35c345ee1a582fddbcbd4152c5389e Mon Sep 17 00:00:00 2001 From: polarbearing Date: Tue, 23 Mar 2021 12:37:14 +0100 Subject: [PATCH] Show the crafted duration of a block independent of the reading time Fixes #3143. Not tested by myself. Treat like pseudocode, I don't speak Ruby. --- app/views/user_blocks/show.html.erb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/views/user_blocks/show.html.erb b/app/views/user_blocks/show.html.erb index 52c099ee40..1b5609e25b 100644 --- a/app/views/user_blocks/show.html.erb +++ b/app/views/user_blocks/show.html.erb @@ -28,7 +28,10 @@

<% end %> -

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

+

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

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