mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-03-16 22:10:28 +00:00
Implemented branding title prefix customization (#5344)
This commit is contained in:
parent
13133dad5b
commit
dd1597ea37
5 changed files with 15 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -374,6 +374,7 @@ Contributors
|
|||
* Alex Tomkins
|
||||
* Beth Menzies
|
||||
* Michael Bunsen
|
||||
* Dillen Meijboom
|
||||
|
||||
Translators
|
||||
===========
|
||||
|
|
|
|||
|
|
@ -56,6 +56,17 @@ To replace the favicon displayed when viewing admin pages, create a template fil
|
|||
<link rel="shortcut icon" href="{% static 'images/favicon.ico' %}" />
|
||||
{% 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``
|
||||
------------------
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
~~~~~~~~~
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
<html class="no-js" lang="{{ LANGUAGE_CODE }}" dir="{% if LANGUAGE_BIDI %}rtl{% else %}ltr{% endif %}">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>Wagtail - {% block titletag %}{% endblock %}</title>
|
||||
<title>{% block branding_title %}Wagtail{% endblock %} - {% block titletag %}{% endblock %}</title>
|
||||
<meta name="description" content="" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta name="robots" content="noindex" />
|
||||
|
|
|
|||
Loading…
Reference in a new issue