skill-assessment-app/app/views/admin/_nav.html.erb

10 lines
478 B
Plaintext
Raw Normal View History

2016-09-22 16:29:19 -05:00
<nav>
<%= link_to("Users", admin_users_url) if policy(User).index? %>
<% #= link_to("Departments", admin_departments_url) if policy(Department).index? %>
<%= link_to("Quizzes", admin_quizzes_url) if policy(Quiz).index? %>
<%= link_to("Candidates", admin_candidates_url) if policy(Candidate).index? %>
<%= link_to("Results", admin_results_url) if policy(Quiz).index? %>
<%= link_to("Profile", admin_profile_url) %>
<%= link_to("Logout", admin_logout_url) %>
</nav>