[web2py] Re: Bootstrap MENU (li_class)

2014-07-28 Thread Louis Amon
It works, but I went for a different solution : I built a function in my view that builds the menu I want. For the record, my function looks like this : {{ def profile_menu(list_of_tuples): return DIV(*[A(i[0], _href=i[1], _class="btn btn-nav btn-36 btn-grey" if request.url != i[1] else "bt

[web2py] Re: Bootstrap MENU (li_class)

2014-07-27 Thread Massimo Di Pierro
You can make your menu to contain links: response.menu = [('name',None,A('name',_href=URL('index'),_class="btn")),] On Thursday, 24 July 2014 12:26:51 UTC-5, Louis Amon wrote: > > I'm trying to build a MENU styled with Boostrap. > > I'd like my items to have the class "btn". > > How can I