Closes #16776: Extend PluginTemplateExtension to render custom alerts for objects (#16889)

* Closes #16776: Extend PluginTemplateExtension to render custom alerts for objects

* Fix bug in _get_registered_content()
This commit is contained in:
Jeremy Stretch
2024-07-12 09:52:07 -04:00
committed by GitHub
parent 02ae91589d
commit 1c2336be60
6 changed files with 69 additions and 30 deletions

View File

@@ -110,6 +110,10 @@ Blocks:
<div class="page-body my-1">
<div class="container-fluid tab-content py-3">
{# Page alerts #}
{% block alerts %}{% endblock %}
{# /Page alerts #}
{# Page content #}
{% block content %}{% endblock %}
{# /Page content #}

View File

@@ -111,6 +111,10 @@ Context:
</ul>
{% endblock tabs %}
{% block alerts %}
{% plugin_alerts object %}
{% endblock alerts %}
{% block content %}{% endblock %}
{% block modals %}