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

add title to pages

This commit is contained in:
Lukas Winkler 2021-09-29 22:20:25 +02:00
parent c6dd5d5a41
commit 455f771987
Signed by: lukas
GPG key ID: 54DE4D798D244853
6 changed files with 15 additions and 5 deletions

View file

@ -1,6 +1,8 @@
{% extends "tenantbase.html" %} {% extends "tenantbase.html" %}
{% load i18n %} {% load i18n %}
{% block title %}{{ object }}{% endblock %}
{% block content %} {% block content %}
<h1>{{ object }}</h1> <h1>{{ object }}</h1>
<h2>{% translate "Players" %}</h2> <h2>{% translate "Players" %}</h2>

View file

@ -4,6 +4,7 @@
{% load static %} {% load static %}
{% block mainpage %} {% block mainpage %}
<h1>{% translate "Add new campaign" %}</h1> <h1>{% translate "Add new campaign" %}</h1>

View file

@ -1,10 +1,12 @@
{% extends "base.html" %} {% extends "base.html" %}
{% load i18n %} {% load i18n %}
{% block title %}{% translate "Campaign Overview" %}{% endblock %}
{% block mainpage %} {% block mainpage %}
{% if user %} {% if user %}
<h1>{{ user }}</h1> <h1>{% translate "Campaign Overview" %}</h1>
<a href="{% url "logout" %}">{% translate "Log out" %}</a>
{% endif %} {% endif %}
{% for campaign in campaigns %} {% for campaign in campaigns %}
<h2><a href="{{ campaign.get_absolute_url }}">{{ campaign.name }}</a></h2> <h2><a href="{{ campaign.get_absolute_url }}">{{ campaign.name }}</a></h2>

View file

@ -2,6 +2,8 @@
{% load i18n %} {% load i18n %}
{% load formatters %} {% load formatters %}
{% block title %}{% translate "Loot" %}{% endblock %}
{% block heading %} {% block heading %}
<h1>{% translate "Loot" %}</h1> <h1>{% translate "Loot" %}</h1>
{% endblock %} {% endblock %}

View file

@ -9,7 +9,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<title>{% block title %}{% endblock %}</title> <title>{% block title %}{% endblock %} - RPGnotes</title>
<!-- Bootstrap --> <!-- Bootstrap -->
{% if debug %} {% if debug %}
@ -50,10 +50,10 @@
{% if sentry_event_id %} {% if sentry_event_id %}
<script src="{% static "libs/bundle.min.js" %}"></script> <script src="{% static "libs/bundle.min.js" %}"></script>
<script nonce="{{request.csp_nonce}}"> <script nonce="{{ request.csp_nonce }}">
Sentry.init({dsn: "{{ sentry_dsn }}"}); Sentry.init({dsn: "{{ sentry_dsn }}"});
{% get_current_language as LANGUAGE_CODE %} {% get_current_language as LANGUAGE_CODE %}
Sentry.showReportDialog({eventId: "{{ sentry_event_id }}",lang:"{{ LANGUAGE_CODE }}"}); Sentry.showReportDialog({eventId: "{{ sentry_event_id }}", lang: "{{ LANGUAGE_CODE }}"});
</script> </script>
{% endif %} {% endif %}
{% block extra_js %}{% endblock %} {% block extra_js %}{% endblock %}

View file

@ -3,6 +3,9 @@
{% load i18n %} {% load i18n %}
{% load version %} {% load version %}
{% block title %}{{ object }}{% endblock %}
{% block mainpage %} {% block mainpage %}
<nav class="navbar navbar-expand-lg navbar-light bg-light"> <nav class="navbar navbar-expand-lg navbar-light bg-light">
<div class="container-fluid"> <div class="container-fluid">