Display staff services link conditionally
This commit is contained in:
parent
0e97d7ab23
commit
932367be24
1 changed files with 8 additions and 6 deletions
|
@ -15,12 +15,14 @@
|
|||
|
||||
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
||||
<ul class="navbar-nav mr-auto">
|
||||
<% if policy([:staff, :home]).show? %>
|
||||
<li class="nav-item <%= :active if staff_controller? %>">
|
||||
<%= link_to staff_root_path, class: 'nav-link' do %>
|
||||
<%= translate :staff_services %>
|
||||
<span class="sr-only">(<%= translate :current %>)</span>
|
||||
<% end %>
|
||||
</li>
|
||||
<% end %>
|
||||
</ul>
|
||||
|
||||
<ul class="navbar-nav ml-auto mr-3">
|
||||
|
|
Reference in a new issue