]> git.datanom.net - pwp.git/blob - app/templates/menu.html
Half way through migration away from sqlalchemy
[pwp.git] / app / templates / menu.html
1 <nav class="navbar navbar-inverse navbar-fixed-top">
2 <div class="container-fluid">
3 <div class="navbar-header">
4 <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
5 <span class="sr-only">Toggle navigation</span>
6 <span class="icon-bar"></span>
7 <span class="icon-bar"></span>
8 <span class="icon-bar"></span>
9 </button>
10 <span class="navbar-brand"><i class="fa fa-camera-retro fa-1g"></i></span>
11 </div>
12 <div id="navbar" class="collapse navbar-collapse">
13 <ul class="nav navbar-nav">
14 <li><a href="{{ url_for('index') }}"><span class="glyphicon glyphicon-home"></span> Home</a></li>
15 <li class="dropdown">
16 <a class="dropdown-toggle" data-toggle="dropdown" href="#">Portfolios<span class="caret"></span></a>
17 <ul class="dropdown-menu">
18 <li><a href="{{ url_for('getPortfolios') }}"><span class="glyphicon glyphicon-list-alt"></span> List</a></li>
19 {% if g.user.is_authenticated %}
20 <li><a href="{{ url_for('portfolio') }}"><span class="glyphicon glyphicon-plus"></span> New</a></li>
21 {% endif %}
22 </ul>
23 </li>
24 <li class="dropdown">
25 <a class="dropdown-toggle" data-toggle="dropdown" href="#">Albums<span class="caret"></span></a>
26 <ul class="dropdown-menu">
27 <li><a href="{{ url_for('getAlbums') }}"><span class="glyphicon glyphicon-list-alt"></span> List</a></li>
28 {% if g.user.is_authenticated %}
29 <li><a href="{{ url_for('album') }}"><span class="glyphicon glyphicon-plus"></span> New</a></li>
30 {% endif %}
31 </ul>
32 </li>
33 <li>
34 <form class="navbar-form navbar-left" method="POST" action="{{ url_for('search') }}">
35 {{ g.searchForm.hidden_tag() }}
36 {{ wtf.form_field(g.searchForm.token, placeholder="Search") }}
37 {{ wtf.form_field(g.searchForm.search, class="btn btn-default") }}
38 </form>
39 </li>
40 </ul>
41 <ul class="nav navbar-nav navbar-right">
42 {% if g.user.is_authenticated %}
43 <li><a href="{{ url_for('user', username=g.user.username) }}"><span class="glyphicon glyphicon-cog"></span> Profile</a></li>
44 {% if g.user.is_admin %}
45 <li><a href="{{ url_for('admin') }}"><span class="glyphicon glyphicon-wrench"></span> Admin</a></li>
46 {% endif %}
47 <li><a href="{{ url_for('logout') }}"><span class="glyphicon glyphicon-log-out"></span> Logout</a></li>
48 {% else %}
49 <li><a href="{{ url_for('register') }}"><span class="glyphicon glyphicon-user"></span> Register</a></li>
50 <li><a href="{{ url_for('login') }}"><span class="glyphicon glyphicon-log-in"></span> Login</a></li>
51 {% endif %}
52 </ul>
53 </div>
54 </div>
55 </nav>
This page took 0.127656 seconds and 6 git commands to generate.