]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/user_blocks/show.html.erb
Show the crafted duration of a block independent of the reading time
[rails.git] / app / views / user_blocks / show.html.erb
index 52c099ee40318654f27bfc188bace36aad21dc42..1b5609e25b32130e2e80d9f9b69a5c6397ce242c 100644 (file)
 </p>
 <% 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>