<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset=”utf-8”>
|
|
<title>[{{ environment }}] {% if title %}{{ title }}{% else %}Home Page{% endif %}</title>
|
|
|
|
{% block styles %}
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}" />
|
|
{% endblock %}
|
|
|
|
{% block scripts %}
|
|
{% endblock %}
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<h1>[{{ environment }}] Home Page</h1>
|
|
|
|
{% if current_user.is_anonymous %}
|
|
<p><a href="{{ url_for('auth.login') }}">Login</a></p>
|
|
{% endif %}
|
|
{% if current_user.is_authenticated %}
|
|
<p>Hello {{ current_user.username }}</p> <a href="{{ url_for('auth.logout') }}">Logout</a></li>
|
|
{% endif %}
|
|
|
|
{% with messages = get_flashed_messages() %}
|
|
{% if messages %}
|
|
{% for message in messages %}
|
|
<div class="alert alert-info" role="alert">{{ message }}</div>
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% endwith %}
|
|
|
|
{% block app_content %}{% endblock %}
|
|
</div>
|
|
</body>
|
|
</html>
|