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