X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/031dc0fe1b638a45849c8fa36e51f077fe2cf9c1..5995e2b3239b6d51d2403c81087b95034af1a8af:/app/views/user_blocks/_navigation.html.erb?ds=inline diff --git a/app/views/user_blocks/_navigation.html.erb b/app/views/user_blocks/_navigation.html.erb index bd389edbf..f53f5cf28 100644 --- a/app/views/user_blocks/_navigation.html.erb +++ b/app/views/user_blocks/_navigation.html.erb @@ -26,4 +26,19 @@ :class => ["nav-link", { :active => action_name == "blocks_by" && current_user == @user }] %> <% end %> + <% by_user = @user || @user_block&.creator %> + <% if by_user != current_user && by_user&.blocks_created&.exists? %> + + <% end %> + <% if @user_block %> + + <% end %>