97d20f1f93a9989e9958473e4f761ade56257072
[myslice.git] / 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 "bootstrap/js/bootstrap.js" %}
3 {% insert_str prelude "bootstrap/css/bootstrap.css" %}
4 {% insert_str prelude "css/topmenu.css" %}
5
6 <div id='topmenu' class="navbar navbar-fixed-top">
7   <div class="navbar-inner">
8     <div class="container-fluid">
9       <a class="brand" href="/"><img src="{{ STATIC_URL }}img/myslice-logo.png" height="30" alt="MySlice logo" /></a>
10       <div class="nav-collapse topmenu">
11         <ul class="nav nav-pills" id='menu_ul'>
12           {% for d in topmenu_items %}
13           {% if d.active %}
14           <li class='active'> <a href="{{ d.href }}"> {{ d.label }} </a> </li>
15           {% else %}
16           <li class='other'> <a href="{{ d.href }}"> {{ d.label }} </a> </li>
17           {% endif %}
18           {% endfor %}
19         </ul>
20         <p class="navbar-text pull-right">
21           {% if username %}
22         Logged in as <a href="/logout/">{{ username }}</a></p>
23           {% else %}
24           Not logged in
25           {% endif %}
26       </div><!--nav-collapse-->
27     </div><!--container-fluid-->
28   </div><!--navbar-inner-->
29 </div><!--topmenu-->