From 6b82a53c33238ab86d046aa8c335893101c878e5 Mon Sep 17 00:00:00 2001 From: Nenad Vujicic Date: Thu, 23 May 2024 17:02:44 +0200 Subject: [PATCH] Fixed "Top menu buttons" issue mentioned in the #4773 --- app/views/layouts/_header.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" %> -- 2.39.5