2021-09-25 20:31:08 +02:00
|
|
|
{% load i18n %}
|
2021-09-07 17:05:03 +02:00
|
|
|
{% load version %}
|
2021-09-05 22:04:14 +02:00
|
|
|
{% load django_bootstrap5 %}
|
2021-08-22 20:10:29 +02:00
|
|
|
{% load static %}
|
|
|
|
<!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">
|
|
|
|
|
2021-09-29 22:20:25 +02:00
|
|
|
<title>{% block title %}{% endblock %} - RPGnotes</title>
|
2021-08-22 20:10:29 +02:00
|
|
|
|
|
|
|
<!-- 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-09-05 22:04:14 +02:00
|
|
|
{% bootstrap_messages %}
|
2021-08-22 20:10:29 +02:00
|
|
|
{% block mainpage %}{% endblock %}
|
|
|
|
</div>
|
2021-09-07 17:05:03 +02:00
|
|
|
<footer>
|
|
|
|
<nav class="navbar navbar-dark bg-dark navbar-expand">
|
|
|
|
<div class="container-fluid">
|
|
|
|
<ul class="navbar-nav">
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="https://github.com/Findus23/RPGnotes/tree/{% commit_id %}"
|
|
|
|
target="_blank" rel="noopener" title="{% commit_id %}">
|
|
|
|
Source
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
|
|
|
{% if user.is_authenticated %}
|
2021-09-25 20:31:08 +02:00
|
|
|
<a class="nav-link" href="{% url "logout" %}">{% translate "Log out" %}</a>
|
2021-09-07 17:05:03 +02:00
|
|
|
{% else %}
|
2021-09-25 20:31:08 +02:00
|
|
|
<a class="nav-link" href="{% url "login" %}">{% translate "Log in" %}</a>
|
2021-09-07 17:05:03 +02:00
|
|
|
{% endif %}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
|
|
|
|
</footer>
|
|
|
|
|
2021-08-22 20:10:29 +02:00
|
|
|
<script src="{% static "libs/bootstrap.min.js" %}"></script>
|
2021-09-11 19:09:22 +02:00
|
|
|
|
|
|
|
{% if sentry_event_id %}
|
|
|
|
<script src="{% static "libs/bundle.min.js" %}"></script>
|
2021-09-29 22:20:25 +02:00
|
|
|
<script nonce="{{ request.csp_nonce }}">
|
2021-09-11 19:09:22 +02:00
|
|
|
Sentry.init({dsn: "{{ sentry_dsn }}"});
|
2021-09-25 20:31:08 +02:00
|
|
|
{% get_current_language as LANGUAGE_CODE %}
|
2021-09-29 22:20:25 +02:00
|
|
|
Sentry.showReportDialog({eventId: "{{ sentry_event_id }}", lang: "{{ LANGUAGE_CODE }}"});
|
2021-09-11 19:09:22 +02:00
|
|
|
</script>
|
|
|
|
{% endif %}
|
2021-08-22 20:10:29 +02:00
|
|
|
{% block extra_js %}{% endblock %}
|
|
|
|
</body>
|
|
|
|
</html>
|