{% extends base_template %} {% from "macros/audit.html" import m_audit_log with context %} {% from "macros/comment.html" import m_comments, m_comment_form %} {% from "macros/attachment.html" import m_attachments, m_attachment_form %} {% from "macros/box.html" import m_box_content %} {% from "macros/tag.html" import m_tags_toggle_edit %} {% block content %} {% if title %}

{{ title }}

{% endif %} {{ rendered_entity }} {%- if tags.is_support_tagging(view.obj) %}

{{ _('Tags') }}

{{ m_tags_toggle_edit(view.obj) }} {%- endif %}
{%- for view in related_views %} {% if view.size %}
{{ view.rendered }}
{% endif %} {%- endfor %} {%- if comments.is_commentable(view.obj) %}

{{ _('Comments (%(count)d)', count=comments.count(view.obj)) }}

{{ m_comments(view.obj) }} {%- if show_new_comment_form %} {{ m_comment_form(view.obj) }} {%- endif %}
{%- endif %} {%- set att_manager = attachments.manager(view.obj) %} {%- if att_manager.is_support_attachments(view.obj) and att_manager.can_view(view.obj) %}

{{ _('Attachments (%(count)d)', count=attachments.count(view.obj)) }}

{{ m_attachments(view.obj) }} {%- if show_new_attachment_form and att_manager.can_create(view.obj) %} {{ m_attachment_form(view.obj) }} {%- endif %}
{%- endif %} {{ m_audit_log(audit_entries) }}
{% endblock %}