Skip to content

Commit

Permalink
turn on active path detection. closes #174
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Mason committed May 12, 2016
1 parent ae11f20 commit c871d71
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/views/layouts/_navbar.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
%span.glyphicon.glyphicon-chevron-down
.navbar-collapse.collapse
%ul.nav.navbar-nav
%li= link_to "Explorer", courses_path
%li= link_to "Scheduler", scheduler_path
%li= link_to "Wish List", wishlist_path
%li= link_to "FAQ", faq_path
%li= link_to "Explorer", courses_path, class: active_tab?(request, root_path, courses_path) ? 'active' : ''
%li= link_to "Scheduler", scheduler_path, class: active_tab?(request, scheduler_path) ? 'active' : ''
%li= link_to "Wish List", wishlist_path, class: active_tab?(request, wishlist_path) ? 'active' : ''
%li= link_to "FAQ", faq_path, class: active_tab?(request, faq_path) ? 'active' : ''
%ul.nav.navbar-right.navbar-nav
%li
%form.navbar-form{role: 'search', action: '/courses', method: :get}
Expand Down

0 comments on commit c871d71

Please sign in to comment.