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
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
2 matches
Mail list logo