View raw

1 {# -*- mode: web; -*- #} 2 3 <!doctypehtml> 4 5 <html lang="en"> 6 <head> 7 <metacharset="utf-8"> 8 <metaname="viewport"content="width=device-width, initial-scale=1, shrink-to"> 9 <title>mdl</title> 10 <metaname="author"content="Marius Peter"> 11 <metaname="description"content="A draft page for mdl."> 12 <!-- <link rel="icon" href="{{ url_for('static', filename='img/favicon.png') }}"> --> 13 <linkrel="stylesheet"href="{{ url_for('static', filename='styles/style.css') }}"> 14 </head> 15 <body> 16 <nav id="user"> 17 <div style="display: flex;"> 18 <ul> 19 <li><a href="https://apps.mlnp.fr" class="button">Apps</a></li> 20 <li><a href="{{ url_for('main.home') }}" class="button"><code>mdl</code></a></li> 21 </ul> 22 <h1>{% block title %}{% endblock %}</h1> 23 </div> 24 <ul> 25 {% if current_user.is_authenticated %} 26 <li><a href="{{ url_for('common.settings') }}" class="button">Settings</a></li> 27 <li><a href="{{ url_for('auth.logout') }}" class="button">Logout</a></li> 28 {% else %} 29 <li><a href="{{ url_for('auth.login') }}" class="button">Login</a></li> 30 <li><a href="{{ url_for('auth.register') }}" class="button">Register</a></li> 31 {% endif %} 32 </ul> 33 </nav> 34 <div id="content"> 35 {% block content %}{% endblock %} 36 </div> 37 {# Flashed messages added last, so that they appear on top of the content. #} 38 {% with messages = get_flashed_messages(with_categories=true) %} 39 {% if messages %} 40 <div id="flash"> 41 <ul> 42 {% for category, message in messages %} 43 <li class="alert alert-{{ category }}">{{ message }}</li> 44 {% endfor %} 45 </ul> 46 </div> 47 {% endif %} 48 {% endwith %} 49 <!-- <script src="js/scripts.js"></script> --> 50 </body> 51 </html> 52