{# Base layout for the core NetBox UI w/navbar and page content #} {% extends 'base/base.html' %} {% load helpers %} {% load navigation %} {% load static %} {% load i18n %} {% comment %} Blocks: header: Page header tabs: Horizontal navigation tabs content: Page content modals: Bootstrap 5 modal components {% endcomment %} {% block layout %}
{# Sidebar #} {# Top menu #} {# Page content #}
{# Page header #} {% block header %} {# Top banner #} {% if config.BANNER_TOP %} {% include 'inc/banner.html' with content=config.BANNER_TOP %} {% endif %} {# /Top banner #} {# Alerts #} {% if settings.DEBUG and not settings.DEVELOPER %} {% include 'inc/alerts/warning.html' with title="Debug mode is enabled" message="Performance may be limited. Debugging should never be enabled on a production system." %} {% endif %} {% if config.MAINTENANCE_MODE and config.BANNER_MAINTENANCE %} {% include 'inc/alerts/warning.html' with title="Maintenance Mode" message=config.BANNER_MAINTENANCE|escape %} {% endif %} {# /Alerts #} {% endblock header %} {# /Page header #} {# Page body #} {% block page %}
{# Page content #} {% block content %}{% endblock %} {# /Page content #}
{% endblock page %} {# /Page body #} {# Bottom banner #} {% if config.BANNER_BOTTOM %} {% include 'inc/banner.html' with content=config.BANNER_BOTTOM %} {% endif %} {# /Bottom banner #} {# Page footer #} {# /Page footer #} {# /Page content #}
{# BS5 pop-up modals #} {% block modals %}{% endblock %}
{% endblock layout %}