Skip to content

Commit

Permalink
feat: change banners position on navbar
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafael-Martins committed Oct 2, 2023
1 parent 4abe126 commit 57aa232
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions app/views/layouts/_sidebar.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,16 @@
<% if current_user.volunteer? %>
<%= render partial: "layouts/other_duties_nav_item" %>
<% end %>

<% if policy(:application).see_banner_page? %>
<li class="<%= active_class(casa_admins_path) %> nav-item">
<%= link_to banners_path, class: "#{active_class(banners_path)}" do %>
<i class="lni lni-flag mr-10"></i>
Banners
<% end %>
</li>
<% end %>

<li class="nav-item nav-item-has-children">
<a
href="#0"
Expand Down Expand Up @@ -172,14 +182,6 @@
</li>
<% end %>

<% if policy(:application).see_banner_page? %>
<li>
<%= link_to banners_path, class: "#{active_class(banners_path)}" do %>
<i class="lni lni-flag mr-10"></i>
Banners
<% end %>
</li>
<% end %>
</ul>
</li>
<li>
Expand Down

0 comments on commit 57aa232

Please sign in to comment.