From d83b18fb3ce0192589038e6e320add4e4147e7bf Mon Sep 17 00:00:00 2001 From: Benjamin ter Kuile Date: Thu, 29 Nov 2012 20:25:14 +0100 Subject: [PATCH] fix namespace issue in current_page check --- app/views/theme1/_navigation.html.slim | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/views/theme1/_navigation.html.slim b/app/views/theme1/_navigation.html.slim index 310eb91b..ba4af5a6 100644 --- a/app/views/theme1/_navigation.html.slim +++ b/app/views/theme1/_navigation.html.slim @@ -1,7 +1,7 @@ ul.nav - li[class=(current_page?(controller: 'dashboard', action: 'home') ? :active : nil)]= link_to t('menu.home'), root_path - li[class=(current_page?(controller: 'dashboard', action: 'clients') ? :active : nil)]= link_to t('menu.clients'), clients_path - li[class=(current_page?(controller: 'dashboard', action: 'bars_restaurants') ? :active : nil)]= link_to t('menu.bars_restaurants'), bars_restaurants_path - li[class=(current_page?(controller: 'dashboard', action: 'enquete') ? :active : nil)]= link_to t('menu.enquete'), enquete_path - li[class=(current_page?(controller: 'dashboard', action: 'cartoon') ? :active : nil)]= link_to t('menu.cartoon'), cartoon_path - li[class=(current_page?(controller: 'dashboard', action: 'contact') ? :active : nil)]= link_to t('menu.contact'), contact_path + li[class=(current_page?(controller: '/dashboard', action: 'home') ? :active : nil)]= link_to t('menu.home'), root_path + li[class=(current_page?(controller: '/dashboard', action: 'clients') ? :active : nil)]= link_to t('menu.clients'), clients_path + li[class=(current_page?(controller: '/dashboard', action: 'bars_restaurants') ? :active : nil)]= link_to t('menu.bars_restaurants'), bars_restaurants_path + li[class=(current_page?(controller: '/dashboard', action: 'enquete') ? :active : nil)]= link_to t('menu.enquete'), enquete_path + li[class=(current_page?(controller: '/dashboard', action: 'cartoon') ? :active : nil)]= link_to t('menu.cartoon'), cartoon_path + li[class=(current_page?(controller: '/dashboard', action: 'contact') ? :active : nil)]= link_to t('menu.contact'), contact_path