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

pull/8717/head
Matt Westcott 2022-06-10 21:32:43 +01:00 zatwierdzone przez LB (Ben Johnston)
rodzic 8766277e44
commit 034da854bc
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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">

Wyświetl plik

@ -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,
}
)