0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-24 19:17:48 +01:00

Use blocktrans to remove trailing whitespace in headers

- Fixes #9596
This commit is contained in:
Florian Vogt 2022-11-04 15:14:21 +01:00 committed by LB (Ben Johnston)
parent 2a20764b00
commit cafc2130af
5 changed files with 5 additions and 2 deletions

View File

@ -35,6 +35,7 @@ Changelog
* Fix: Ensure tag fields correctly show in both dark and light Windows high-contrast modes (Albina Starykova)
* Fix: Ensure new tooltips & tooltip menus have visible borders and tip triangle in Windows high-contrast mode (Juliet Adeboye)
* Fix: Ensure there is a visual difference of 'active/current link' vs normal links in Windows high-contrast mode (Mohammad Areeb)
* Fix: Avoid issues where trailing whitespace could be accidentally removed in translations for new page & snippet headers (Florian Vogt)
4.1.1 (xx.xx.xxxx) - IN DEVELOPMENT

View File

@ -663,6 +663,7 @@ Contributors
* Aman Pandey
* Doug Harris
* Mohammad Areeb
* Florian Vogt
Translators
===========

View File

@ -46,6 +46,7 @@ depth: 1
* Ensure tag fields correctly show in both dark and light Windows high-contrast modes (Albina Starykova)
* Ensure new tooltips & tooltip menus have visible borders and tip triangle in Windows high-contrast mode (Juliet Adeboye)
* Ensure there is a visual difference of 'active/current link' vs normal links in Windows high-contrast mode (Mohammad Areeb)
* Avoid issues where trailing whitespace could be accidentally removed in translations for new page & snippet headers (Florian Vogt)
## Upgrade considerations

View File

@ -2,7 +2,7 @@
{% load wagtailadmin_tags i18n %}
{% block header_content %}
{% trans 'New: '|add:content_type.model_class.get_verbose_name as title %}
{% blocktrans trimmed asvar title with model_name=content_type.model_class.get_verbose_name %}New: {{ model_name }}{% endblocktrans %}
{% breadcrumbs parent_page 'wagtailadmin_explore' url_root_name='wagtailadmin_explore_root' include_self=True trailing_breadcrumb_title=title %}
<h1 class="w-sr-only">

View File

@ -12,7 +12,7 @@
{% block header_content %}
{% with model_opts.verbose_name|capfirst as model_name %}
{% trans 'New: '|add:model_name as title %}
{% blocktrans trimmed asvar title %}New: {{ model_name }}{% endblocktrans %}
{{ block.super }}
<h1 class="w-sr-only">