{% extends 'generic/_base.html' %} {% load buttons %} {% load custom_links %} {% load helpers %} {% load perms %} {% load plugins %} {% load tabs %} {% load i18n %} {% comment %} Blocks: breadcrumbs: Breadcrumb list items (HTML
  • elements) object_identifier: Unique identifier for the object extra_controls: Additional action buttons to display content: Page content Context: object: The object instance being viewed {% endcomment %} {% block page-header %}
    {# 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 %}
    {% trans "Created" %} {{ object.created|annotated_date }} {% if object.last_updated %} · {% trans "Updated" %} {{ object.last_updated|timesince }} {% trans "ago" %} {% 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 request.user|can_add:object %} {% clone_button object %} {% endif %} {% if request.user|can_change:object %} {% edit_button object %} {% endif %} {% if request.user|can_delete:object %} {% delete_button object %} {% endif %} {% endblock control-buttons %}
    {# Custom links #}
    {% block custom-links %} {% custom_links object %} {% endblock custom-links %}
    {% endblock controls %} {% block tabs %} {% endblock tabs %} {% block content %}{% endblock %} {% block modals %} {% include 'inc/htmx_modal.html' %} {% endblock modals %}