52 lines
1.9 KiB
HTML
52 lines
1.9 KiB
HTML
|
<!DOCTYPE html>
|
||
|
<html>
|
||
|
<head>
|
||
|
<meta charset="utf-8" />
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||
|
<title>{% block title %}{% endblock %} | Login example</title>
|
||
|
<link rel="stylesheet" href="{{ url_for('static', filename='css/bootstrap.min.css') }}">
|
||
|
</head>
|
||
|
<body>
|
||
|
<nav class="navbar navbar-default">
|
||
|
<div class="container-fluid">
|
||
|
<!-- Brand and toggle get grouped for better mobile display -->
|
||
|
<div class="navbar-header">
|
||
|
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
|
||
|
<span class="sr-only">Toggle navigation</span>
|
||
|
<span class="icon-bar"></span>
|
||
|
<span class="icon-bar"></span>
|
||
|
<span class="icon-bar"></span>
|
||
|
</button>
|
||
|
<a class="navbar-brand" href="#">Example Login</a>
|
||
|
</div>
|
||
|
|
||
|
<!-- Collect the nav links, forms, and other content for toggling -->
|
||
|
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
|
||
|
<ul class="nav navbar-nav navbar-right">
|
||
|
{% if 'user' in session %}
|
||
|
<li><a href="{{ url_for('dashboard') }}">Dashboard</a></li>
|
||
|
<li><a href="{{ url_for('logout') }}">Logout</a></li>
|
||
|
{% else %}
|
||
|
<li><a href="{{ url_for('login') }}">Login</a></li>
|
||
|
<li><a href="{{ url_for('signup') }}">Signup</a></li>
|
||
|
{% endif %}
|
||
|
</ul>
|
||
|
</div><!-- /.navbar-collapse -->
|
||
|
</div><!-- /.container-fluid -->
|
||
|
</nav>
|
||
|
<div class="container">
|
||
|
{# Flashed messages #}
|
||
|
{% with messages = get_flashed_messages(with_categories=true) %}
|
||
|
{% if messages %}
|
||
|
{% for category, message in messages %}
|
||
|
<div class="alert alert-{{ category }}" role="alert">{{ message }}</div>
|
||
|
{% endfor %}
|
||
|
{% endif %}
|
||
|
{% endwith %}
|
||
|
{# End Flashed messages #}
|
||
|
{% block body %}{% endblock %}
|
||
|
</div>
|
||
|
<script src="{{ url_for('static', filename='js/bootstrap.min.js') }}"></script>
|
||
|
</body>
|
||
|
</html>
|