0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 11:41:20 +01:00

Rename 'icon' context variable to avoid leaking into shared/field.html

This commit is contained in:
Matt Westcott 2022-06-10 21:32:43 +01:00 committed by LB (Ben Johnston)
parent 8766277e44
commit 034da854bc
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
{% load i18n wagtailadmin_tags %}
{% include "wagtailadmin/shared/header.html" with title=page_title merged=1 icon=icon %}
{% include "wagtailadmin/shared/header.html" with title=page_title merged=1 icon=header_icon %}
<div class="w-tabs" data-tabs data-tabs-disable-url>
<div class="tab-content nice-padding">

View File

@ -23,7 +23,7 @@ class ModalPageFurnitureMixin(ContextMixin):
context = super().get_context_data(**kwargs)
context.update(
{
"icon": self.icon,
"header_icon": self.icon,
"page_title": self.page_title,
}
)