netbox/templates/generic/object.html
{% extends 'generic/_base.html' %} {% load buttons %} {% load custom_links %} {% load helpers %} {% load perms %} {% load plugins %} {% load tabs %} {% load i18n %} {% comment %} Blocks: - page-header: Content displayed above the primary page content - breadcrumbs: Breadcrumb list items (HTML
{# Breadcrumbs #} {# Object identifier #} {% block object_identifier %} {{ object|meta:"app_label" }}.{{ object|meta:"model_name" }}:{{ object.pk }} {% if object.slug %}({{ object.slug }}){% endif %} {% endblock object_identifier %}
{{ block.super }} {% endblock page-header %} {% block title %}{{ object }}{% endblock %} {% block subtitle %}
{% if object.owner %} - {{ object.owner|linkify }} {% endif %} - {{ object.created|isodatetime:"minutes" }} {% if object.last_updated %} - {{ object.last_updated|isodatetime:"minutes" }} {% endif %}
{% endblock subtitle %} {% block controls %} {% plugin_buttons object %} {# Add/edit/delete/etc. buttons #} {% block control-buttons %} {# Extra buttons #} {% block extra_controls %}{% endblock %} {# Default buttons #} {% if perms.extras.add_bookmark and object.bookmarks %} {% bookmark_button object %} {% endif %} {% if perms.extras.add_subscription and object.subscriptions %} {% subscribe_button object %} {% endif %} {% action_buttons actions object %} {% endblock control-buttons %} {# Custom links #}
{% block custom-links %} {% custom_links object %} {% endblock custom-links %}
{% endblock controls %} {% block tabs %} {% endblock tabs %} {% block alerts %} {% plugin_alerts object %} {% endblock alerts %} {% block content %} {# Render panel layout declared on view class #} {% for row in layout %} {% for column in row %} {% for panel in column %} {% render panel %} {% endfor %} {% endfor %} {% endfor %} {% endblock %} {% block modals %} {% include 'inc/htmx_modal.html' %} {% endblock modals %}