matemat/templates/base.html

39 lines
850 B
HTML

<!DOCTYPE html>
<html>
<head>
{% block head %}
<title>Matemat</title>
<link rel="stylesheet" href="/css/matemat.css" />
{% endblock %}
</head>
<body>
<header>
{% block header %}
<a href="/">Home</a>
{% if authlevel|default(0) > 1 %}
{% if authuser is defined %}
{% if authuser.is_admin %}
<a href="/admin">Administration</a>
{% else %}
<a href="/admin">Settings</a>
{% endif %}
{% endif %}
{% endif %}
{% endblock %}
</header>
<main>
{% block main %}{% endblock %}
</main>
<footer>
{% block footer %}
<ul>
<li> Matemat {{__version__}}
<li> &copy; 2018 s3lph
<li> MIT License
<li> <a href="https://gitlab.com/s3lph/matemat">Source &amp; Documentation</a>
</ul>
{% endblock %}
</footer>
</body>
</html>