From b5d91ae34852bdfff0ed553ae9e4ff3d6dedb2d0 Mon Sep 17 00:00:00 2001 From: zerolab Date: Wed, 13 Nov 2024 09:14:52 +0000 Subject: [PATCH] Add ONS branding for the Wagtail admin See: https://docs.wagtail.org/en/stable/advanced_topics/customisation/admin_templates.html --- cms/core/templates/wagtailadmin/admin_base.html | 3 +++ cms/core/templates/wagtailadmin/base.html | 6 ++++++ cms/core/templates/wagtailadmin/login.html | 8 ++++++++ 3 files changed, 17 insertions(+) create mode 100644 cms/core/templates/wagtailadmin/admin_base.html create mode 100644 cms/core/templates/wagtailadmin/base.html create mode 100644 cms/core/templates/wagtailadmin/login.html diff --git a/cms/core/templates/wagtailadmin/admin_base.html b/cms/core/templates/wagtailadmin/admin_base.html new file mode 100644 index 0000000..0a633a3 --- /dev/null +++ b/cms/core/templates/wagtailadmin/admin_base.html @@ -0,0 +1,3 @@ +{% extends "wagtailadmin/admin_base.html" %} +{% load i18n %} +{% block branding_title %}{% trans "ONS Wagtail CMS" %}{% endblock %} diff --git a/cms/core/templates/wagtailadmin/base.html b/cms/core/templates/wagtailadmin/base.html new file mode 100644 index 0000000..edb5e41 --- /dev/null +++ b/cms/core/templates/wagtailadmin/base.html @@ -0,0 +1,6 @@ +{% extends "wagtailadmin/base.html" %} +{% block branding_logo %} + + + +{% endblock %} diff --git a/cms/core/templates/wagtailadmin/login.html b/cms/core/templates/wagtailadmin/login.html new file mode 100644 index 0000000..6a1d093 --- /dev/null +++ b/cms/core/templates/wagtailadmin/login.html @@ -0,0 +1,8 @@ +{% extends "wagtailadmin/login.html" %} +{% load i18n %} +{% block branding_login %}{% trans "Sign in to the ONS Wagtail CMS" %}{% endblock %} +{% block branding_logo %} + +{% endblock %}