<% if policy(:federal_subject).index? %>
-
<%= link_to federal_subjects_path, class: 'nav-link' do %>
<%= FederalSubject.model_name.human count: 0 %>
<% end %>
<% end %>
<% if policy([:staff, :home]).show? %>
-
<%= link_to staff_root_path, class: 'nav-link' do %>
<%= translate :staff_services %>
<% end %>
<% end %>
<% if current_account %>
-
<%= link_to current_account.nickname,
'#',
id: :navbarDropdown,
role: :button,
class: 'nav-link dropdown-toggle',
'data-toggle': :dropdown,
'aria-haspopup': true,
'aria-expanded': false %>
<% end %>
<% if policy(%i[users session]).new? %>
<%= link_to translate('users.shared.links.sign_in'),
new_user_session_path,
role: :button,
class: 'btn btn-light mr-2' %>
<% end %>
<% if policy(%i[users registration]).new? %>
<%= link_to translate('users.shared.links.sign_up'),
new_user_registration_path,
role: :button,
class: 'btn btn-primary' %>
<% end %>