Hi,

Given that I have a menu like:

response.menu = [
    ['Home', request.function=='index',
       URL(request.application,'default','index'), []],
    ['New Post', request.function=='create',
       URL(request.application,'default','create'), []],
    ]

the "active" link does not work unless I copy this addition from an
older SVN revision in "html.py":

diff -a gluon/html.py ~/web2py-read-only/gluon/html.py
1270,1273c1270
<               if active:
<                 li = LI(A(name, _href=link, _class="active"))
<               else:
<                 li = LI(A(name, _href=link))
---
>                 li = LI(A(name, _href=link))

I am wondering why this addition was removed, probably there is a
better way to implement the menu?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to