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.
This commit is contained in:
polarbearing 2021-03-23 12:37:14 +01:00 committed by GitHub
parent 1fd5d7f4fe
commit b4e2f8e34f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -28,7 +28,10 @@
</p> </p>
<% end %> <% end %>
<p><b><%= t ".created" %></b>: <%= friendly_date_ago(@user_block.created_at) %></p> <p>
<b><%= t ".created" %></b>: <%= friendly_date_ago(@user_block.created_at) %>
(<%= block_duration_in_words(@user_block.ends_at - @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>