From 10c9bfaa06d51b9e0eee7626d842b1ca7a4832eb Mon Sep 17 00:00:00 2001 From: Petko Bordjukov Date: Mon, 20 Apr 2015 16:59:00 +0300 Subject: [PATCH] Add an active class to the conferences menu item --- app/views/layouts/management/_navigation.html.slim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/layouts/management/_navigation.html.slim b/app/views/layouts/management/_navigation.html.slim index 22a2630..45dba67 100644 --- a/app/views/layouts/management/_navigation.html.slim +++ b/app/views/layouts/management/_navigation.html.slim @@ -10,7 +10,7 @@ nav.navbar.navbar-static-top.navbar-inverse role="navigation" .navbar-collapse.collapse.navbar-inverse-collapse - if user_signed_in? 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" => icon 'users', class: 'fa-fw' span = Conference.model_name.human(count: 2).mb_chars.capitalize