diff --git a/app/views/shared/_nav.html.erb b/app/views/shared/_nav.html.erb index 654d8cc..c644f91 100644 --- a/app/views/shared/_nav.html.erb +++ b/app/views/shared/_nav.html.erb @@ -1,35 +1,41 @@ Toggle navigation Baas - Clients + <%= content_tag(:li, active_class(clients_path, true)) do %> + <%= link_to 'Clients', clients_path %> + <% end %> Contact Profile Logout Profile Edit <% if current_user.admin? %> - <%= link_to 'Admin', admin_path %> - <%= link_to 'Clients', admin_clients_path %> + <%= content_tag(:li, active_class(admin_path)) do %> + <%= link_to 'Admin', admin_path %> + <% end %> + <%= content_tag(:li, active_class(admin_clients_path, true)) do %> + <%= link_to 'Clients', admin_clients_path %> + <% end %> <% end %>