kopia lustrzana https://github.com/wagtail/wagtail
Fix home icon in breadcrumbs for limited-permission users, fixes #7348
- The html has just been synced with the html for unlimited userspull/7474/head
rodzic
f1b3bbc52f
commit
22a35b70d2
|
@ -24,6 +24,7 @@ Changelog
|
||||||
* Fix: Admin fields and Icon visibility issues in Windows high contrast mode (Dmitrii Faiazov)
|
* Fix: Admin fields and Icon visibility issues in Windows high contrast mode (Dmitrii Faiazov)
|
||||||
* Fix: `blocks.MultipleChoiceBlock`, `forms.CheckboxSelectMultiple` and `ArrayField` checkboxes will now stack instead of display inline to align with all other checkboxes fields (Seb Brown)
|
* Fix: `blocks.MultipleChoiceBlock`, `forms.CheckboxSelectMultiple` and `ArrayField` checkboxes will now stack instead of display inline to align with all other checkboxes fields (Seb Brown)
|
||||||
* Fix: Screen readers can now access login screen field labels (Amy Chan)
|
* Fix: Screen readers can now access login screen field labels (Amy Chan)
|
||||||
|
* Fix: Admin breadcrumbs home icon now shows for users with access to a subtree only (Stefan Hammer)
|
||||||
|
|
||||||
|
|
||||||
2.14.1 (12.08.2021)
|
2.14.1 (12.08.2021)
|
||||||
|
|
|
@ -529,6 +529,7 @@ Contributors
|
||||||
* Jannis Vajen
|
* Jannis Vajen
|
||||||
* Dmitrii Faiazov
|
* Dmitrii Faiazov
|
||||||
* Amy Chan
|
* Amy Chan
|
||||||
|
* Stefan Hammer
|
||||||
|
|
||||||
Translators
|
Translators
|
||||||
===========
|
===========
|
||||||
|
|
|
@ -39,6 +39,7 @@ Bug fixes
|
||||||
* Admin fields and Icon visibility issues in Windows high contrast mode (Dmitrii Faiazov)
|
* Admin fields and Icon visibility issues in Windows high contrast mode (Dmitrii Faiazov)
|
||||||
* ``blocks.MultipleChoiceBlock``, ``forms.CheckboxSelectMultiple`` and ``ArrayField`` checkboxes will now stack instead of display inline to align with all other checkboxes fields (Seb Brown)
|
* ``blocks.MultipleChoiceBlock``, ``forms.CheckboxSelectMultiple`` and ``ArrayField`` checkboxes will now stack instead of display inline to align with all other checkboxes fields (Seb Brown)
|
||||||
* Screen readers can now access login screen field labels (Amy Chan)
|
* Screen readers can now access login screen field labels (Amy Chan)
|
||||||
|
* Admin breadcrumbs home icon now shows for users with access to a subtree only (Stefan Hammer)
|
||||||
|
|
||||||
Upgrade considerations
|
Upgrade considerations
|
||||||
======================
|
======================
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
{% elif forloop.first %}
|
{% elif forloop.first %}
|
||||||
{# For limited-permission users whose breadcrumb starts further down from the root, the first item displays as a 'home' icon in place of the title #}
|
{# For limited-permission users whose breadcrumb starts further down from the root, the first item displays as a 'home' icon in place of the title #}
|
||||||
{% trans 'Home' as home %}
|
{% trans 'Home' as home %}
|
||||||
<li class="home"><a href="{% url 'wagtailadmin_explore' page.id %}" class="text-replace">{% icon name="site" class_name="home_icon" title=home %}</a>{% icon name="arrow-right" class_name="arrow_right_icon"%}</li>
|
<li class="home"><a href="{% url 'wagtailadmin_explore' page.id %}">{% icon name="site" class_name="home_icon" title=home %}{% icon name="arrow-right" class_name="arrow_right_icon"%}</a></li>
|
||||||
{% elif forloop.last %}
|
{% elif forloop.last %}
|
||||||
<li><a href="{% url 'wagtailadmin_explore' page.id %}"><span class="title">{{ page.get_admin_display_title }}</span>
|
<li><a href="{% url 'wagtailadmin_explore' page.id %}"><span class="title">{{ page.get_admin_display_title }}</span>
|
||||||
{% if trailing_arrow %}
|
{% if trailing_arrow %}
|
||||||
|
|
|
@ -559,15 +559,15 @@ class TestExplorablePageVisibility(TestCase, WagtailTestUtils):
|
||||||
# since it's his Closest Common Ancestor.
|
# since it's his Closest Common Ancestor.
|
||||||
expected = """
|
expected = """
|
||||||
<li class="home">
|
<li class="home">
|
||||||
<a href="/admin/pages/4/" class="text-replace">
|
<a href="/admin/pages/4/">
|
||||||
<svg class="icon icon-site home_icon" aria-hidden="true" focusable="false">
|
<svg class="icon icon-site home_icon" aria-hidden="true" focusable="false">
|
||||||
<use href="#icon-site"></use>
|
<use href="#icon-site"></use>
|
||||||
</svg>
|
</svg>
|
||||||
<span class="visuallyhidden">Home</span>
|
<span class="visuallyhidden">Home</span>
|
||||||
|
<svg class="icon icon-arrow-right arrow_right_icon" aria-hidden="true" focusable="false">
|
||||||
|
<use href="#icon-arrow-right"></use>
|
||||||
|
</svg>
|
||||||
</a>
|
</a>
|
||||||
<svg class="icon icon-arrow-right arrow_right_icon" aria-hidden="true" focusable="false">
|
|
||||||
<use href="#icon-arrow-right"></use>
|
|
||||||
</svg>
|
|
||||||
</li>
|
</li>
|
||||||
"""
|
"""
|
||||||
self.assertContains(response, expected, html=True)
|
self.assertContains(response, expected, html=True)
|
||||||
|
|
Ładowanie…
Reference in New Issue