6 <meta http-equiv="X-UA-Compatible" content="IE=edge">
7 <meta name="viewport" content="width=device-width, initial-scale=1">
8 <title>{% block title %}title{% endblock %} - {{ config.USER_APP_NAME }}</title>
9 <link rel="stylesheet" type="text/css" href="/static/main.css">
10 {% block headextra %}{% endblock %}
15 <ul class="nav navbar-nav navbar-left">
16 <li><a href="/"><img src="/static/logo_dark.svg" /></a></li>
17 {% for item in current_menu.children recursive %}
19 <li{% if item.children %} class="dropdown"{% endif %}>
20 <a href="{{ item.url }}"
21 {% if item.children %}
22 class="dropdown-toggle"
23 data-toggle="dropdown"
28 {% if item.children %}
29 <span class="caret"></span>
32 {% if item.children %}
33 <ul class="dropdown-menu" role="menu">
34 {{ loop(item.children) }}
41 <ul class="nav navbar-nav navbar-right">
42 {% if current_user.is_authenticated %}
43 <li><a href="{{ url_for('notifications_page') }}">({{ current_user.notifications | length }})</a></li>
44 <li><a href="{{ url_for('create_edit_package_page') }}">+</a></li>
46 <a href="{{ url_for('user_profile_page', username=current_user.username) }}"
47 class="dropdown-toggle"
48 data-toggle="dropdown"
50 aria-expanded="false">{{ current_user.display_name }}
51 <span class="caret"></span></a>
53 <ul class="dropdown-menu" role="menu">
55 <a href="{{ url_for('user_profile_page', username=current_user.username) }}">Profile</a>
57 {% if current_user.canAccessTodoList() %}
58 <li><a href="{{ url_for('todo_page') }}">Work Queue</a></li>
60 {% if current_user.rank == current_user.rank.ADMIN %}
61 <li><a href="{{ url_for('admin_page') }}">Admin</a></li>
63 <li><a href="{{ url_for('user.logout') }}">Sign out</a></li>
67 <li><a href="{{ url_for('user.login') }}">Sign in</a></li>
70 <div style="clear:both;"></div>
74 {% block flash_messages %}
75 {%- with messages = get_flashed_messages(with_categories=true) -%}
78 {% for category, message in messages %}
79 <li class="box box_grey alert alert-{{category}}">
80 <span class="icon_message"></span>
84 <div style="clear: both;"></div>