From d7eb758bb15a7d5997d1da462080f5ba5d9991ed Mon Sep 17 00:00:00 2001 From: Christoph Haas Date: Wed, 8 Aug 2018 09:22:01 +0200 Subject: [PATCH] Highlighting 'Contribute' in the topbar if necessary --- app/views/layouts/_topbar.slim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/layouts/_topbar.slim b/app/views/layouts/_topbar.slim index 2c992d5..85b57b3 100644 --- a/app/views/layouts/_topbar.slim +++ b/app/views/layouts/_topbar.slim @@ -17,10 +17,10 @@ nav.top-bar / ul.menu li.menu-text class=('active' if controller_name=='welcome' and action_name=='home') a href="/" Home - li.menu-text class=('active' if controller_name=='packages') + li.menu-text class=('active' if controller_name=='packages' and request.fullpath != packages_without_path) a href="/packages" Browse / TODO: highlights the "Browse" tab (even) when you click on Contribute - li.menu-text + li.menu-text class=('active' if request.fullpath == packages_without_path) =link_to 'Contribute', :packages_without //li.has-dropdown //a href="#" Distributions