From 7de02b4bd147950d7a0386a969b82de2671a3337 Mon Sep 17 00:00:00 2001 From: Tobias Kunze Date: Wed, 4 Sep 2024 12:30:52 +0200 Subject: [PATCH] Fix page titles --- pretalx_pages/templates/pretalx_pages/delete.html | 4 +++- pretalx_pages/templates/pretalx_pages/form.html | 4 +++- pretalx_pages/templates/pretalx_pages/index.html | 4 +++- pretalx_pages/templates/pretalx_pages/show.html | 3 ++- 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/pretalx_pages/templates/pretalx_pages/delete.html b/pretalx_pages/templates/pretalx_pages/delete.html index 2d98649..f4478bb 100644 --- a/pretalx_pages/templates/pretalx_pages/delete.html +++ b/pretalx_pages/templates/pretalx_pages/delete.html @@ -1,6 +1,8 @@ {% extends "orga/base.html" %} {% load i18n %} -{% block title %}{% trans "Delete a page" %}{% endblock %} + +{% block extra_title %}{% trans "Delete a page" %}{% endblock %} + {% block content %}

{% trans "Delete a page" %}

diff --git a/pretalx_pages/templates/pretalx_pages/form.html b/pretalx_pages/templates/pretalx_pages/form.html index e644622..f7f1f38 100644 --- a/pretalx_pages/templates/pretalx_pages/form.html +++ b/pretalx_pages/templates/pretalx_pages/form.html @@ -2,7 +2,9 @@ {% load i18n %} {% load bootstrap4 %} {% load static %} -{% block title %}{% trans "Page" %}{% endblock %} + +{% block extra_title %}{% trans "Page" %}{% endblock %} + {% block content %}

{% trans "Page" %}

diff --git a/pretalx_pages/templates/pretalx_pages/index.html b/pretalx_pages/templates/pretalx_pages/index.html index c68dc3a..2be1274 100644 --- a/pretalx_pages/templates/pretalx_pages/index.html +++ b/pretalx_pages/templates/pretalx_pages/index.html @@ -2,7 +2,9 @@ {% load i18n %} {% load compress %} {% load static %} -{% block title %}{% trans "Pages" %}{% endblock %} + +{% block extra_title %}{% trans "Pages" %}{% endblock %} + {% block content %}

{% trans "Pages" %}

{% if pages|length == 0 %} diff --git a/pretalx_pages/templates/pretalx_pages/show.html b/pretalx_pages/templates/pretalx_pages/show.html index 89f59df..8102352 100644 --- a/pretalx_pages/templates/pretalx_pages/show.html +++ b/pretalx_pages/templates/pretalx_pages/show.html @@ -10,7 +10,8 @@ {% endif %} {% endblock %} -{% block title %}{{ page_title }} :: {{ event.name }}{% endblock %} +{% block extra_title %}{{ page_title }}{% endblock %} + {% block content %}

{{ page_title }}

{{ content|safe }}