% if user %>
<% if show_my_activity_link? %>
<%= layout_menu_link_to t("layouts.header.my_activity_link"),
user_path(user),
controller_name == "users",
rel: "nofollow",
title: t("shared.go_to_page") +
t("layouts.header.my_activity_link") %>
<% end %>
<%= layout_menu_link_to t("layouts.header.my_account_link"),
account_path,
controller_name == "account",
rel: "nofollow",
title: t("shared.go_to_page") +
t("layouts.header.my_account_link") %>
<%= link_to t("devise_views.menu.login_items.logout"),
destroy_user_session_path, rel: "nofollow", method: :delete %>
<% else %>
<%= link_to t("devise_views.menu.login_items.login"),
new_user_session_path, rel: "nofollow" %>
<%= link_to t("devise_views.menu.login_items.signup"),
new_user_registration_path, rel: "nofollow", class: "button" %>
<% end %>