From: Nenad Vujicic Date: Thu, 23 May 2024 15:02:44 +0000 (+0200) Subject: Fixed "Top menu buttons" issue mentioned in the #4773 X-Git-Tag: live~880^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/6b82a53c33238ab86d046aa8c335893101c878e5 Fixed "Top menu buttons" issue mentioned in the #4773 --- diff --git a/app/views/layouts/_header.html.erb b/app/views/layouts/_header.html.erb index 8516efc49..7f2880a1c 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" %> - <% elsif (controller_name != "users" and controller_name != "sessions") || action_name != "new" %> + <% else %>
<%= 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" %>