{% extends 'generic/object.html' %} {% load static %} {% load custom_object_buttons %} {% load custom_links %} {% load helpers %} {% load perms %} {% load plugins %} {% load render_table from django_tables2 %} {% load tabs %} {% load i18n %} {% load custom_object_utils %} {% block extra_controls %} {% endblock %} {% block breadcrumbs %} {% endblock breadcrumbs %} {% block object_identifier %} {{ object|meta:"app_label" }}.{{ object.custom_object_type.slug }}:{{ object.pk }} {% if object.slug %}({{ object.slug }}){% endif %} {% endblock object_identifier %} {% block title %}{{ object }}{% endblock title %} {% block subtitle %}
{% trans "Created" %} {{ object.created|isodatetime:"minutes" }} {% if object.last_updated %} · {% trans "Updated" %} {{ object.last_updated|isodatetime:"minutes" }} {% endif %}
{% endblock subtitle %} {% block controls %}
{% block control-buttons %} {# Default buttons #} {% if perms.extras.add_bookmark and object.bookmarks %} {% custom_object_bookmark_button object %} {% endif %} {% if perms.extras.add_subscription and object.subscriptions %} {% custom_object_subscribe_button object %} {% endif %} {% if request.user|can_add:object %} {% custom_object_clone_button object %} {% endif %} {% if request.user|can_change:object %} {% custom_object_edit_button object %} {% endif %} {% if request.user|can_delete:object %} {% custom_object_delete_button object %} {% endif %} {% endblock %}
{# Custom links #}
{% block custom-links %} {% custom_links object %} {% endblock custom-links %}
{% endblock controls %} {% block tabs %} {% endblock tabs %} {% block content %}
{% for group_name, group_fields in field_groups.items %} {% if group_name %} {% endif %} {% for field in group_fields %} {% with is_visible_in_ui=object|get_field_is_ui_visible:field %} {% if field.is_single_value and is_visible_in_ui %} {% endif %} {% endwith %} {% endfor %} {% endfor %}
{% trans "Type" %} {{ object.custom_object_type|linkify:"display_name" }}
{% trans "Last activity" %} {{ latest_change.time|isodatetime|placeholder }} {% if latest_change %}
{{ latest_change.time|timesince }} {% trans "ago" %}
{% endif %}
{{ group_name }}
{{ field }} {% if field.description %} {% endif %} {% with customfield=field value=object|get_field_value:field %} {% include "builtins/customfield_value.html" %} {% endwith %}
{% plugin_left_page object %}
{% include 'inc/panels/tags.html' %} {% plugin_right_page object %} {% for group_name, group_fields in field_groups.items %} {% for field in group_fields %} {% if field.many %} {% with field_values=object|get_child_relations:field is_visible_in_ui=object|get_field_is_ui_visible:field %} {% if is_visible_in_ui %}

{% if group_name %}{{ group_name }}: {% endif %}{{ field }}

{% for relation in field_values.all %} {% endfor %}
{{ relation|linkify }}
{% endif %} {% endwith %} {% endif %} {% endfor %} {% endfor %}
{% plugin_full_width_page object %}
{% endblock %}