capsul-flask/capsulflask/templates/base.html

38 lines
998 B
HTML
Raw Normal View History

2020-05-10 03:59:22 +00:00
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>{% block title %}{% endblock %}{% if self.title() %} - {% endif %}capsul💊</title>
2020-05-10 03:59:22 +00:00
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" href="/favicon.ico" />
<link rel="apple-touch-icon" href="/icon.png" />
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
</head>
<body>
<header>
<div class="float-right">
2020-05-10 04:32:13 +00:00
{% if session["account"] %}
2020-05-10 18:51:54 +00:00
<span>Logged in as {{ session["account"] }}</span>
2020-05-10 03:59:22 +00:00
<a href="{{ url_for('auth.logout') }}">Log Out</a>
{% else %}
<a href="{{ url_for('auth.login') }}">Log In</a>
{% endif %}
</div>
<h1>
capsul
</h1>
</header>
<main>
{% for message in get_flashed_messages() %}
<div class="flash">{{ message }}</div>
{% endfor %}
{% block content %}{% endblock %}
</main>
<footer>
</footer>
</body>
</html>