1
0
Fork 0
mirror of https://github.com/Findus23/RPGnotes.git synced 2024-09-19 15:43:45 +02:00
RPGnotes/templates/base.html

60 lines
1.8 KiB
HTML
Raw Normal View History

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">
<title>{% block title %}{% endblock %}</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-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 %}
<a class="nav-link" href="{% url "logout" %}">Logout</a>
{% else %}
<a class="nav-link" href="{% url "login" %}">Login</a>
{% 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-11 19:21:14 +02:00
<script nonce="{{request.csp_nonce}}">
2021-09-11 19:09:22 +02:00
Sentry.init({dsn: "{{ sentry_dsn }}"});
Sentry.showReportDialog({eventId: "{{ sentry_event_id }}"});
</script>
{% endif %}
2021-08-22 20:10:29 +02:00
{% block extra_js %}{% endblock %}
</body>
</html>