X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/031dc0fe1b638a45849c8fa36e51f077fe2cf9c1..801944dbe4694fd895058b9444bacbe4e57d53e1:/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 %>