nicer and simpler logout
[myslice.git] / views / templates / widget-topmenu.html
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" %}
6
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 %}
14           {% if d.active %}
15           <li class='active'> <a href="{{ d.href }}"> {{ d.label }} </a> </li>
16           {% else %}
17           <li class='other'> <a href="{{ d.href }}"> {{ d.label }} </a> </li>
18           {% endif %}
19           {% endfor %}
20         </ul>
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-->
26 </div><!--topmenu-->