This should work: replace navbar section in layout.html with
<!-- Navbar ================================================== -->
<div class="navbar navbar-inverse">
<div class="flash">{{=response.flash or ''}}</div>
<div class="navbar-inner">
<div class="container">
{{is_mobile=request.user_agent().is_mobile}}
<!-- the next tag is necessary for bootstrap menus, do not remove
-->
<button type="button" class="btn btn-navbar" data-toggle="collapse"
data-target=".nav-collapse" style="{{='display:none;' if not is_mobile else
''}}">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
{{=response.logo or ''}}
<ul id="navbar" class="nav pull-right">{{='auth' in globals() and
auth.navbar(mode="dropdown") or ''}}</ul>
<div class="{{='nav-collapse' if is_mobile else 'nav'}}">
{{if response.menu:}}
{{=MENU(response.menu, _class='mobile-menu nav' if is_mobile else
'nav',mobile=is_mobile,li_class='dropdown',ul_class='dropdown-menu')}}
{{pass}}
</div><!--/.nav-collapse -->
</div>
</div>
</div><!--/top navbar -->In attachment the patched file. The code has not been tested in mobiles so please try before to use it. Il giorno giovedì 27 giugno 2013 09:04:49 UTC+2, Massimo Di Pierro ha scritto: > > I would like to know it too. It should only happen when detecting a mobile > device. > > On Thursday, 27 June 2013 01:57:44 UTC-5, James Burke wrote: >> >> Hi, >> >> Is it possible to stop the menu from collapsing into a button when the >> window width is resized smaller? >> >> Or do I have to start from scratch. >> >> Cheers >> >> James >> > -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.Title: {{=response.title or request.application}}
{{=response.title}} {{=response.subtitle or ''}}
{{block center}}
{{include}}
{{end}}
{{if right_sidebar_enabled:}}
{{block right_sidebar}}
{{pass}}

