diff --git a/CHANGELOG.txt b/CHANGELOG.txt index f39b83724..1869ddc7d 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -20,6 +20,7 @@ Changelog * Added consistent focus outline styles across the whole admin (Thibaud Colas) * Removed version number from the logo link’s title. The version can now be found under the Settings menu (Thibaud Colas) * Added "don't delete" option to confirmation screen when deleting images, documents and modeladmin models (Kevin Howbrook) + * Added `branding_title` template block for the admin title prefix (Dillen Meijboom) * Fix: ModelAdmin no longer fails when filtering over a foreign key relation (Jason Dilworth, Matt Westcott) * Fix: The Wagtail version number is now visible within the Settings menu (Kevin Howbrook) * Fix: Scaling images now rounds values to an integer so that images render without errors (Adrian Brunyate) diff --git a/CONTRIBUTORS.rst b/CONTRIBUTORS.rst index b98269e09..e8af6fa0b 100644 --- a/CONTRIBUTORS.rst +++ b/CONTRIBUTORS.rst @@ -374,6 +374,7 @@ Contributors * Alex Tomkins * Beth Menzies * Michael Bunsen +* Dillen Meijboom Translators =========== diff --git a/docs/advanced_topics/customisation/admin_templates.rst b/docs/advanced_topics/customisation/admin_templates.rst index c81274144..55887b503 100644 --- a/docs/advanced_topics/customisation/admin_templates.rst +++ b/docs/advanced_topics/customisation/admin_templates.rst @@ -56,6 +56,17 @@ To replace the favicon displayed when viewing admin pages, create a template fil {% endblock %} +``branding_title`` +------------------ + +To replace the title prefix (which is 'Wagtail' by default), create a template file ``dashboard/templates/wagtailadmin/admin_base.html`` that overrides the block ``branding_title``: + +.. code-block:: html+django + + {% extends "wagtailadmin/admin_base.html" %} + + {% block branding_title %}Frank's CMS{% endblock %} + ``branding_login`` ------------------ diff --git a/docs/releases/2.6.rst b/docs/releases/2.6.rst index 79a00b17e..e66208cfb 100644 --- a/docs/releases/2.6.rst +++ b/docs/releases/2.6.rst @@ -29,6 +29,7 @@ Other features * Added consistent focus outline styles across the whole admin (Thibaud Colas) * Removed version number from the logo link’s title. The version can now be found under the Settings menu (Thibaud Colas) * Added "don't delete" option to confirmation screen when deleting images, documents and modeladmin models (Kevin Howbrook) + * Added ``branding_title`` template block for the admin title prefix (Dillen Meijboom) Bug fixes ~~~~~~~~~ diff --git a/wagtail/admin/templates/wagtailadmin/skeleton.html b/wagtail/admin/templates/wagtailadmin/skeleton.html index 18c5df8ee..69494d488 100644 --- a/wagtail/admin/templates/wagtailadmin/skeleton.html +++ b/wagtail/admin/templates/wagtailadmin/skeleton.html @@ -5,7 +5,7 @@ - Wagtail - {% block titletag %}{% endblock %} + {% block branding_title %}Wagtail{% endblock %} - {% block titletag %}{% endblock %}