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 %}
18 <li{% if item.children %} class="dropdown"{% endif %}>
19 <a href="{{ item.url }}"
20 {% if item.children %}
21 class="dropdown-toggle"
22 data-toggle="dropdown"
27 {% if item.children %}
28 <span class="caret"></span>
31 {% if item.children %}
32 <ul class="dropdown-menu" role="menu">
33 {{ loop(item.children) }}
40 <ul class="nav navbar-nav navbar-right">
41 {% if current_user.is_authenticated %}
42 <li><a href="{{ url_for('user_profile_page', username=current_user.username) }}">{{ current_user.display_name }}</a></li>
43 <li><a href="{{ url_for('user.logout') }}">Sign out</a></li>
45 <li><a href="{{ url_for('user.login') }}">Sign in</a></li>
48 <div style="clear:both;"></div>
52 {% block flash_messages %}
53 {%- with messages = get_flashed_messages(with_categories=true) -%}
56 {% for category, message in messages %}
57 <li class="box box_grey alert alert-{{category}}">
58 <span class="icon_message"></span>
62 <div style="clear: both;"></div>