2021-10-15 20:10:50 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
|
|
|
|
<title>{% block title %}{% endblock %} - RPGnotes</title>
|
|
|
|
|
|
|
|
<!-- Bootstrap -->
|
|
|
|
{% if debug %}
|
|
|
|
<link rel="stylesheet" href="{{ url("css") }}">
|
|
|
|
{% else %}
|
|
|
|
<link rel="stylesheet" href="{{ static("css/main.css") }}">
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div class="container">
|
2021-10-15 22:05:11 +02:00
|
|
|
{% for message in messages %}
|
|
|
|
{{ bootstrap_alert(message.message|default(""),alert_type=message|bootstrap_message_alert_type,extra_classes=message.extra_tags) }}
|
|
|
|
{% endfor %}
|
2021-10-15 20:10:50 +02:00
|
|
|
{% block mainpage %}{% endblock %}
|
|
|
|
</div>
|
|
|
|
<footer>
|
|
|
|
<nav class="navbar navbar-dark bg-dark navbar-expand">
|
|
|
|
<div class="container-fluid">
|
|
|
|
<ul class="navbar-nav">
|
|
|
|
<li class="nav-item">
|
2021-10-15 22:05:11 +02:00
|
|
|
<a class="nav-link" href="https://github.com/Findus23/RPGnotes/tree/{{ commit_id() }}"
|
|
|
|
target="_blank" rel="noopener" title="{{ commit_id() }}">
|
|
|
|
Source
|
|
|
|
</a>
|
2021-10-15 20:10:50 +02:00
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
|
|
|
{% if user.is_authenticated %}
|
|
|
|
<a class="nav-link" href="{{ url("logout") }}">{% trans %}Log out{% endtrans %}</a>
|
|
|
|
{% else %}
|
|
|
|
<a class="nav-link" href="{{ url("login") }}">{% trans %}Log in{% endtrans %}</a>
|
|
|
|
{% endif %}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
</footer>
|
|
|
|
|
2022-06-19 16:03:59 +02:00
|
|
|
<script src="{{ static("libs/bootstrap.bundle.min.js") }}"></script>
|
2021-10-15 20:10:50 +02:00
|
|
|
<script src="{{ static("libs/luminous.min.js") }}"></script>
|
|
|
|
<script nonce="{{ request.csp_nonce }}">
|
|
|
|
document.addEventListener('DOMContentLoaded', function () {
|
|
|
|
const galleries = document.querySelectorAll("a.image-viewer");
|
|
|
|
new LuminousGallery(galleries)
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
{% if sentry_event_id %}
|
|
|
|
<script src="{{ static("libs/bundle.min.js") }}"></script>
|
|
|
|
<script nonce="{{ request.csp_nonce }}">
|
|
|
|
Sentry.init({dsn: "{{ sentry_dsn }}"});
|
2021-10-15 21:47:49 +02:00
|
|
|
Sentry.showReportDialog({eventId: "{{ sentry_event_id }}", lang: "{{ language_code() }}"});
|
2021-10-15 20:10:50 +02:00
|
|
|
</script>
|
|
|
|
{% endif %}
|
|
|
|
{% block extra_js %}{% endblock %}
|
|
|
|
</body>
|
|
|
|
</html>
|