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/style.css">
14 <ul class="nav navbar-nav">
15 <li><a href="/">{{ config.USER_APP_NAME }}</a></li>
16 {% for item in current_menu.children recursive %}
17 <li{% if item.children %} class="dropdown"{% endif %}>
18 <a href="{{ item.url }}"
19 {% if item.children %}
20 class="dropdown-toggle"
21 data-toggle="dropdown"
26 {% if item.children %}
27 <span class="caret"></span>
30 {% if item.children %}
31 <ul class="dropdown-menu" role="menu">
32 {{ loop(item.children) }}
38 <ul class="nav navbar-nav navbar-right">
39 {% if current_user.is_authenticated %}
40 <li><a href="{{ url_for('user_profile_page', username=current_user.username) }}">{{ current_user.display_name }}</a></li>
41 <li><a href="{{ url_for('user.logout') }}">Sign out</a></li>
43 <li><a href="{{ url_for('user.login') }}">Sign in</a></li>
46 <div style="clear:both;"></div>
50 {% block flash_messages %}
51 {%- with messages = get_flashed_messages(with_categories=true) -%}
54 {% for category, message in messages %}
55 <li class="box box_grey alert alert-{{category}}">
56 <span class="icon_message"></span>
60 <div style="clear: both;"></div>