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