]> git.openstreetmap.org Git - rails.git/commitdiff
Merge remote-tracking branch 'upstream/pull/4661'
authorTom Hughes <tom@compton.nu>
Mon, 8 Apr 2024 19:12:48 +0000 (20:12 +0100)
committerTom Hughes <tom@compton.nu>
Mon, 8 Apr 2024 19:12:48 +0000 (20:12 +0100)
app/views/user_blocks/_navigation.html.erb
config/locales/en.yml

index a84ba133985c0b4331f339f669f1fc9296358547..f53f5cf2806bfc022e10ffed06518095c0fdcf6f 100644 (file)
                   :class => ["nav-link", { :active => action_name == "blocks_by" }] %>
     </li>
   <% end %>
+  <% if @user_block %>
+    <li class="nav-item">
+      <%= link_to t(".block", :id => @user_block.id),
+                  user_block_path(@user_block),
+                  :class => ["nav-link", { :active => action_name == "show" }] %>
+    </li>
+  <% end %>
 </ul>
index 0634fc2a0d1f52b1000462318c6bf42b0620d422..f9117ca1cc89add7669440805fbb59138644c7b0 100644 (file)
@@ -2991,6 +2991,7 @@ en:
       blocks_on_user: "Blocks on %{user}"
       blocks_by_me: "Blocks by Me"
       blocks_by_user: "Blocks by %{user}"
+      block: "Block #%{id}"
   user_mutes:
     index:
       title: "Muted Users"