mirror of
https://github.com/netbox-community/netbox.git
synced 2026-04-23 17:28:49 +02:00
* Closes #16776: Extend PluginTemplateExtension to render custom alerts for objects * Fix bug in _get_registered_content()
This commit is contained in:
@@ -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 #}
|
||||
|
||||
@@ -111,6 +111,10 @@ Context:
|
||||
</ul>
|
||||
{% endblock tabs %}
|
||||
|
||||
{% block alerts %}
|
||||
{% plugin_alerts object %}
|
||||
{% endblock alerts %}
|
||||
|
||||
{% block content %}{% endblock %}
|
||||
|
||||
{% block modals %}
|
||||
|
||||
Reference in New Issue
Block a user