From: Anton Khorev Date: Wed, 3 Apr 2024 09:17:01 +0000 (+0300) Subject: Add "Blocks on user" nav tab to block list/show pages X-Git-Tag: live~742^2~1 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/031dc0fe1b638a45849c8fa36e51f077fe2cf9c1?hp=1861bcf640c70def4563c500ae9f6f814ac729c6 Add "Blocks on user" nav tab to block list/show pages --- diff --git a/app/views/user_blocks/_navigation.html.erb b/app/views/user_blocks/_navigation.html.erb index b7cc19ecf..bd389edbf 100644 --- a/app/views/user_blocks/_navigation.html.erb +++ b/app/views/user_blocks/_navigation.html.erb @@ -11,6 +11,14 @@ :class => ["nav-link", { :active => action_name == "blocks_on" && current_user == @user }] %> <% end %> + <% on_user = @user || @user_block&.user %> + <% if on_user != current_user && on_user&.blocks&.exists? %> + + <% end %> <% if current_user&.blocks_created&.exists? %>