]> git.openstreetmap.org Git - rails.git/commitdiff
Move duration to its own line, so that it can be clearly labelled
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 28 Apr 2021 15:01:03 +0000 (16:01 +0100)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 28 Apr 2021 15:01:03 +0000 (16:01 +0100)
app/views/user_blocks/show.html.erb
config/locales/en.yml

index 1b5609e25b32130e2e80d9f9b69a5c6397ce242c..0204908dd2f85de324739bfd8ad8e8b6d465da8a 100644 (file)
 </p>
 <% end %>
 
-<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 ".created" %></b>: <%= friendly_date_ago(@user_block.created_at) %></p>
+
+<p><b><%= t ".duration" %></b>: <%= block_duration_in_words(@user_block.ends_at - @user_block.created_at) %></p>
 
 <p><b><%= t ".status" %></b>: <%= block_status(@user_block) %></p>
 
index 62fc7bc6aff3779e897e3ec6636f7aa5ad1bea03..f075fd00b8d8e281d4083aafb193548c7f4d8df2 100644 (file)
@@ -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"