Add login functionality and basic HTML pages

This commit is contained in:
2020-01-09 03:17:31 +01:00
parent a0a5384e5b
commit 15ac576058
16 changed files with 147 additions and 48 deletions

View File

@@ -7,8 +7,24 @@
{% endif %}
</head>
<body>
<div>IGDB: <a href="/index">Home</a></div>
<div>IGDB:
<a href="{{ url_for('index') }}">Home</a>
{% if current_user.is_anonymous %}
<a href="{{ url_for('login') }}">Login</a>
{% else %}
<a href="{{ url_for('admin') }}">Administration</a>
<a href="{{ url_for('logout') }}">Logout</a>
{% endif %}
</div>
<hr>
{% block content %}{% endblock %}
</body>
{% with messages = get_flashed_messages() %}
{% if messages %}
<ul>
{% for message in messages %}
<li>{{ message }}</li>
{% endfor %}
</ul>
{% endif %}
{% endwith %}
{% block content %}{% endblock %} </body>
</html>