X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/031dc0fe1b638a45849c8fa36e51f077fe2cf9c1..aac2829ea8485c229889feb1276b03ff7945de0f:/app/views/user_blocks/_navigation.html.erb 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 %>