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">
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>
45 <a href="{{ url_for('user_profile_page', username=current_user.username) }}"
46 class="dropdown-toggle"
47 data-toggle="dropdown"
49 aria-expanded="false">{{ current_user.display_name }}
50 <span class="caret"></span></a>
52 <ul class="dropdown-menu" role="menu">
54 <a href="{{ url_for('user_profile_page', username=current_user.username) }}">Profile</a>
56 {% if current_user.rank == current_user.rank.ADMIN %}
57 <li><a href="{{ url_for('admin_page') }}">Admin</a></li>
59 <li><a href="{{ url_for('user.logout') }}">Sign out</a></li>
63 <li><a href="{{ url_for('user.login') }}">Sign in</a></li>
66 <div style="clear:both;"></div>
70 {% block flash_messages %}
71 {%- with messages = get_flashed_messages(with_categories=true) -%}
74 {% for category, message in messages %}
75 <li class="box box_grey alert alert-{{category}}">
76 <span class="icon_message"></span>
80 <div style="clear: both;"></div>