Skip to content

Commit

Permalink
remove few redundant current action checks
Browse files Browse the repository at this point in the history
  • Loading branch information
MontrealSergiy committed Sep 6, 2024
1 parent 4d137cf commit aa2fab6
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
<%- # account -%>
<% if page_is?("nh_users#", "#myaccount") %>
<% if page_is?("nh_users#") %>
<%= link_to 'My Account', myaccount_path, { :class => "nh_breadcrumbs_item", "data-active" => page_is?("nh_users#myaccount") } %>
<% if page_is_not?("#myaccount") %>
<div class="nh_breadcrumbs_icon"><%= nh_icon_caret_right %></div>
Expand All @@ -58,12 +58,12 @@
<%- # invites -%>
<% if page_is?("nh_invitations#index") %>
<%= link_to 'Invitations', nh_invitations_path, { :class => "nh_breadcrumbs_item", "data-active" => page_is?("nh_invitations#index") } %>
<%= link_to 'Invitations', nh_invitations_path, { :class => "nh_breadcrumbs_item", "data-active" => "true" } %>
<% end %>
<%- # messages -%>
<% if page_is?("nh_messages#index") %>
<%= link_to 'Messages', nh_messages_path, { :class => "nh_breadcrumbs_item", "data-active" => page_is?("nh_messages#index") } %>
<%= link_to 'Messages', nh_messages_path, { :class => "nh_breadcrumbs_item", "data-active" => "true" } %>
<% end %>
<%- # projects -%>
Expand Down Expand Up @@ -96,8 +96,7 @@
<%- # styleguide -%>
<% if page_is?("neurohub_portal#styleguide") %>
<%= link_to 'Styleguide', styleguide_path, { :class => "nh_breadcrumbs_item", "data-active" => page_is?("neurohub_portal#styleguide") } %>
<%= link_to 'Styleguide', styleguide_path, { :class => "nh_breadcrumbs_item", "data-active" => "true" } %>
<% end %>
</div>
Expand Down

0 comments on commit aa2fab6

Please sign in to comment.