pyrom/app/templates/base.html

30 lines
939 B
HTML

{% from 'common/macros.html' import infobox with context %}
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="UTF-8">
{% if self.title() %}
<title>Porom - {% block title %}{% endblock %}</title>
{% else %}
<title>Porom</title>
{% endif %}
<link rel="stylesheet" href="/static/style.css">
</head>
<body>
{% include 'common/topnav.html' %}
{% with messages = get_flashed_messages(with_categories=true) %}
{% if messages %}
{% for category, message in messages %}
{{ infobox(message, category) }}
{% endfor %}
{% endif %}
{% endwith %}
{% block content %}{% endblock %}
<footer class="darkbg">
<span>Pyrom commit <a href="{{ "https://git.poto.cafe/yagich/porom/commit/" + __commit }}">{{ __commit[:8] }}</a></span>
</footer>
<script src="/static/js/copy-code.js"></script>
<script src="/static/js/ui.js"></script>
<script src="/static/js/date-fmt.js"></script>
</body>