Highlighting 'Contribute' in the topbar if necessary
This commit is contained in:
parent
1dcec0f8e6
commit
d7eb758bb1
1 changed files with 2 additions and 2 deletions
|
|
@ -17,10 +17,10 @@ nav.top-bar
|
||||||
/ ul.menu
|
/ ul.menu
|
||||||
li.menu-text class=('active' if controller_name=='welcome' and action_name=='home')
|
li.menu-text class=('active' if controller_name=='welcome' and action_name=='home')
|
||||||
a href="/" 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
|
a href="/packages" Browse
|
||||||
/ TODO: highlights the "Browse" tab (even) when you click on Contribute
|
/ 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
|
=link_to 'Contribute', :packages_without
|
||||||
//li.has-dropdown
|
//li.has-dropdown
|
||||||
//a href="#" Distributions
|
//a href="#" Distributions
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue