X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/031dc0fe1b638a45849c8fa36e51f077fe2cf9c1..1bbe30447b1f89847cd52494252a2336dd00d599:/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..061989586 100644 --- a/app/views/user_blocks/_navigation.html.erb +++ b/app/views/user_blocks/_navigation.html.erb @@ -26,4 +26,25 @@ :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&.persisted? %> + + <% elsif @user_block&.new_record? %> + + <% end %>