1 {# <a id='menu_logo' href="/"><img class="logo" src="{{ STATIC_URL }}img/myslice-logo.png" alt="MySlice" /></a> #}
2 {% insert_str prelude "js/bootstrap.js" %}
3 {% insert_str prelude "css/bootstrap.css" %}
4 {% insert_str prelude "css/topmenu.css" %}
5 {% insert_str prelude "js/logout.js" %}
7 <div class="navbar navbar-fixed-top">
8 <div class="navbar-inner">
9 <div class="container-fluid">
10 <a class="brand" href="/"><img src="{{ STATIC_URL }}img/myslice-logo.png" height="30" alt="MySlice logo" /></a>
11 <div class="nav-collapse topmenu">
12 <ul class="nav nav-pills" id='menu_ul'>
13 {% for d in topmenu_items %}
15 <li class='active'> <a href="{{ d.href }}"> {{ d.label }} </a> </li>
17 <li class='other'> <a href="{{ d.href }}"> {{ d.label }} </a> </li>
20 </ul> {# logout.js will attach a click function on that button, which then retrieves the 'username' attribute #}
21 <span class="navbar-text pull-right"> {% if username %} Logged in as {{ username }}<button id='logout' class='btn btn-danger' username='{{ username }}'>Logout</a>
22 {% else %}Not logged in{% endif %}</span>
23 </div><!--nav-collapse-->
24 </div><!--container-fluid-->
25 </div><!--navbar-inner-->