From 5fcb092151b2224407cd15741d68c39023d99fa3 Mon Sep 17 00:00:00 2001 From: Peter Pfeufer Date: Tue, 19 Oct 2021 11:50:42 +0200 Subject: [PATCH] use SITE_NAME constant as page title --- allianceauth/authentication/templates/public/base.html | 2 +- allianceauth/authentication/templates/public/login.html | 6 +++++- .../authentication/templates/public/middle_box.html | 2 +- allianceauth/authentication/templates/public/register.html | 6 +++++- allianceauth/templates/allianceauth/base.html | 2 +- 5 files changed, 13 insertions(+), 5 deletions(-) diff --git a/allianceauth/authentication/templates/public/base.html b/allianceauth/authentication/templates/public/base.html index 798c270f..9ca3fc9c 100644 --- a/allianceauth/authentication/templates/public/base.html +++ b/allianceauth/authentication/templates/public/base.html @@ -12,7 +12,7 @@ {% include 'allianceauth/icons.html' %} - {% block title %}{{ SITE_NAME }}{% endblock %} + {% block title %}{% block page_title %}{% endblock page_title %} - {{ SITE_NAME }}{% endblock title %} {% include 'bundles/bootstrap-css.html' %} {% include 'bundles/fontawesome.html' %} diff --git a/allianceauth/authentication/templates/public/login.html b/allianceauth/authentication/templates/public/login.html index 9a7921e7..5460b330 100644 --- a/allianceauth/authentication/templates/public/login.html +++ b/allianceauth/authentication/templates/public/login.html @@ -1,6 +1,10 @@ {% extends 'public/middle_box.html' %} + +{% load i18n %} {% load static %} -{% block page_title %}Login{% endblock %} + +{% block page_title %}{% translate "Login" %}{% endblock %} + {% block middle_box_content %} diff --git a/allianceauth/authentication/templates/public/middle_box.html b/allianceauth/authentication/templates/public/middle_box.html index 005e86bf..862eb747 100644 --- a/allianceauth/authentication/templates/public/middle_box.html +++ b/allianceauth/authentication/templates/public/middle_box.html @@ -1,6 +1,6 @@ {% extends 'public/base.html' %} {% load static %} -{% block title %}Login{% endblock %} + {% block content %}
{% if messages %} diff --git a/allianceauth/authentication/templates/public/register.html b/allianceauth/authentication/templates/public/register.html index 05bc685b..99572f3f 100644 --- a/allianceauth/authentication/templates/public/register.html +++ b/allianceauth/authentication/templates/public/register.html @@ -1,13 +1,17 @@ {% extends 'public/base.html' %} + {% load static %} {% load bootstrap %} {% load i18n %} -{% block page_title %}Registration{% endblock %} + +{% block page_title %}{% translate "Registration" %}{% endblock %} + {% block extra_include %} {% include 'bundles/bootstrap-css.html' %} {% include 'bundles/fontawesome.html' %} {% include 'bundles/bootstrap-js.html' %} {% endblock %} + {% block content %}
diff --git a/allianceauth/templates/allianceauth/base.html b/allianceauth/templates/allianceauth/base.html index 9d1798c9..277a0c26 100644 --- a/allianceauth/templates/allianceauth/base.html +++ b/allianceauth/templates/allianceauth/base.html @@ -12,7 +12,7 @@ {% include 'allianceauth/icons.html' %} - {% block title %}{% block page_title %}{% endblock page_title %} - Alliance Auth{% endblock title %} + {% block title %}{% block page_title %}{% endblock page_title %} - {{ SITE_NAME }}{% endblock title %} {% include 'bundles/bootstrap-css.html' %} {% include 'bundles/fontawesome.html' %}