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 <div class="container">
16 <ul class="nav navbar-nav navbar-left">
17 <li><a href="/"><img src="/static/logo_dark.svg" /></a></li>
18 {% for item in current_menu.children recursive %}
20 <li{% if item.children %} class="dropdown"{% endif %}>
21 <a href="{{ item.url }}"
22 {% if item.children %}
23 class="dropdown-toggle"
24 data-toggle="dropdown"
29 {% if item.children %}
30 <span class="caret"></span>
33 {% if item.children %}
34 <ul class="dropdown-menu" role="menu">
35 {{ loop(item.children) }}
42 <ul class="nav navbar-nav navbar-right">
43 {% if current_user.is_authenticated %}
44 <li><a href="{{ url_for('notifications_page') }}">
45 <img src="/static/notification{% if current_user.notifications %}_alert{% endif %}.svg" />
47 <li><a href="{{ url_for('create_edit_package_page') }}">+</a></li>
49 <a href="{{ url_for('user_profile_page', username=current_user.username) }}"
50 class="dropdown-toggle"
51 data-toggle="dropdown"
53 aria-expanded="false">{{ current_user.display_name }}
54 <span class="caret"></span></a>
56 <ul class="dropdown-menu" role="menu">
58 <a href="{{ url_for('user_profile_page', username=current_user.username) }}">Profile</a>
60 {% if current_user.canAccessTodoList() %}
61 <li><a href="{{ url_for('todo_page') }}">Work Queue</a></li>
62 <li><a href="{{ url_for('user_list_page') }}">User list</a></li>
64 {% if current_user.rank == current_user.rank.ADMIN %}
65 <li><a href="{{ url_for('admin_page') }}">Admin</a></li>
67 <li><a href="{{ url_for('user.logout') }}">Sign out</a></li>
71 <li><a href="{{ url_for('user.login') }}">Sign in</a></li>
74 <div class="clearboth"></div>
78 {% block flash_messages %}
79 {%- with messages = get_flashed_messages(with_categories=true) -%}
82 {% for category, message in messages %}
83 <li class="box box_grey alert alert-{{category}}">
84 <span class="icon_message"></span>
88 <div style="clear: both;"></div>
104 Copyright © 2018 to <a href="https://rubenwardy.com/">rubenwardy</a> |
105 <a href="{{ url_for('flatpage', path='help') }}">Help</a> |
106 <a href="https://github.com/minetest/contentdb">GitHub</a>