Highlighting 'Contribute' in the topbar if necessary

This commit is contained in:
Christoph Haas 2018-08-08 09:22:01 +02:00
parent 1dcec0f8e6
commit d7eb758bb1

View file

@ -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