{% extends 'generic/object.html' %} {% load static %} {% load custom_object_buttons %} {% 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 page-header %}
{# Title #}

{% block title %}{{ object }}{% endblock title %}

{% block subtitle %}{% endblock %}
{# Controls #}
{% 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 %} {# {% subscribe_button object %}#} {% endif %} {% if request.user|can_add: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 %}
{% endblock controls %}
{% endblock %} {% block tabs %} {% endblock tabs %} {% block content %}
{% for field in 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 %}
{% trans "Type" %} {{ object.custom_object_type|linkify:"name" }}
{% trans "Last activity" %} {{ latest_change.time|isodatetime|placeholder }} {% if latest_change %}
{{ latest_change.time|timesince }} {% trans "ago" %}
{% endif %}
{{ field }} {% with customfield=field value=object|get_field_value:field %} {% include "builtins/customfield_value.html" %} {% endwith %}
{# {% include 'inc/panels/tags.html' %} #} {% plugin_left_page object %}
{% include 'inc/panels/comments.html' %} {% plugin_right_page object %} {% for field in 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 %}

{{ field }}

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