X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/df77a937587ea00a358f6858d4eb6a68c8254e32..98ff2c0b9c28b7a039b55573540f85ea84eb9fca:/app/views/layouts/_header.html.erb diff --git a/app/views/layouts/_header.html.erb b/app/views/layouts/_header.html.erb index 9f3d01b02..8942eb49c 100644 --- a/app/views/layouts/_header.html.erb +++ b/app/views/layouts/_header.html.erb @@ -104,7 +104,7 @@ <%= link_to t("layouts.logout"), logout_path(:referer => request.fullpath), :method => "post", :class => "geolink dropdown-item" %> - <% else %> + <% elsif (controller_name != "users" and controller_name != "sessions") || action_name != "new" %>
<%= link_to t("layouts.log_in"), login_path(:referer => request.fullpath), :class => "geolink btn btn-outline-secondary" %> <%= link_to t("layouts.sign_up"), user_new_path, :class => "btn btn-outline-secondary" %>