X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/41b81bd393cafe8fb0d25ccdc3afb08fb695bb52..aca9bd205e78ac5f5d37489b2583817c178a6f8e:/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 f4f9b04f8..061989586 100644 --- a/app/views/user_blocks/_navigation.html.erb +++ b/app/views/user_blocks/_navigation.html.erb @@ -34,11 +34,17 @@ :class => ["nav-link", { :active => action_name == "blocks_by" }] %> <% end %> - <% if @user_block %> + <% if @user_block&.persisted? %> + <% elsif @user_block&.new_record? %> + <% end %>