Skip to content

Commit

Permalink
Make profile nav show underline again
Browse files Browse the repository at this point in the history
  • Loading branch information
mlandauer committed Oct 15, 2023
1 parent be69c0a commit d45991f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/_tailwind/application/_menu_desktop.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</ul>
<ul class="flex">
<% if current_user %>
<%= render Tailwind::NavItemComponent.new(href: profile_path, selected: current_page?(profile_path)) do %>
<%= render Tailwind::NavItemComponent.new(href: profile_alerts_path, selected: current_page?(profile_alerts_path)) do %>
<div class="flex space-x-3">
<div><%= current_user.name_with_fallback %></div>
<div><%= render "application/svg/user" %></div>
Expand Down
2 changes: 1 addition & 1 deletion app/views/_tailwind/application/_menu_mobile.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<div class="inline-block mr-2">
<%= render "application/svg/user" %>
</div>
<%= link_to current_user.name_with_fallback, profile_path, class: class_names("decoration-fuchsia", "decoration-4", "underline" => current_page?(profile_path)) %>
<%= link_to current_user.name_with_fallback, profile_alerts_path, class: class_names("decoration-fuchsia", "decoration-4", "underline" => current_page?(profile_alerts_path)) %>
<% else %>
<%= link_to "Sign In", new_user_session_path, class: class_names("decoration-fuchsia", "decoration-4", "underline" => current_page?(new_user_session_path)) %>
<% end %>
Expand Down

0 comments on commit d45991f

Please sign in to comment.