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:
parent
1fd5d7f4fe
commit
b4e2f8e34f
1 changed files with 4 additions and 1 deletions
|
@ -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>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue