Add an active class to the conferences menu item
This commit is contained in:
parent
21b1ae75bb
commit
10c9bfaa06
|
@ -10,7 +10,7 @@ nav.navbar.navbar-static-top.navbar-inverse role="navigation"
|
||||||
.navbar-collapse.collapse.navbar-inverse-collapse
|
.navbar-collapse.collapse.navbar-inverse-collapse
|
||||||
- if user_signed_in?
|
- if user_signed_in?
|
||||||
ul.nav.navbar-nav
|
ul.nav.navbar-nav
|
||||||
li.dropdown
|
li.dropdown class="#{'active' if current_page?(management_path) || current_page?(management_conferences_path)}"
|
||||||
a.dropdown-toggle href="#" data-toggle="dropdown"
|
a.dropdown-toggle href="#" data-toggle="dropdown"
|
||||||
=> icon 'users', class: 'fa-fw'
|
=> icon 'users', class: 'fa-fw'
|
||||||
span = Conference.model_name.human(count: 2).mb_chars.capitalize
|
span = Conference.model_name.human(count: 2).mb_chars.capitalize
|
||||||
|
|
Loading…
Reference in New Issue