{% extends 'generic/object.html' %} {% load i18n %} {% block content %}
{% if open_threads %}
{% blocktrans count counter=open_threads %}{{ counter }} unresolved comment thread.{% plural %}{{ counter }} unresolved comment threads.{% endblocktrans %}
{% endif %} {% for row in rows %}

{% badge row.diff.get_action_display bg_color=row.diff.get_action_color %} {{ row.diff.object_type.name|capfirst }}: {{ row.diff.object_repr }} {% if row.diff.conflicts %}{% trans "Conflict" %}{% endif %} {% if row.open_count %}{{ row.open_count }} {% trans "open" %}{% endif %}

{% for attr in row.attributes %} {% empty %} {% endfor %}
{% trans "Attribute" %} {% trans "Original" %} {% trans "In this branch" %}
{{ attr.field }} {{ attr.original_display|default:"-" }} {{ attr.modified_display|default:"-" }}
{% trans "No attribute-level changes recorded." %}
{% for thread in row.threads %}
{{ thread.comment.author }} {{ thread.comment.created|isodatetime:"minutes" }} {% if thread.comment.resolved %}{% trans "Resolved" %}{% endif %} {% include 'netbox_change_control/inc/comment_actions.html' with comment=thread.comment %}
{% if can_resolve %}
{% csrf_token %}
{% endif %}
{{ thread.comment.text|markdown }}
{% for reply in thread.replies %}
{{ reply.author }} {{ reply.created|isodatetime:"minutes" }} {% include 'netbox_change_control/inc/comment_actions.html' with comment=reply %}
{{ reply.text|markdown }}
{% endfor %} {% if can_comment and not thread.comment.resolved %}
{% csrf_token %}
{% endif %}
{% endfor %} {% if can_comment %}
{% csrf_token %}
{% trans "Markdown syntax is supported." %}
{% endif %}
{% empty %} {% if branch_deleted %}
{% trans "The branch has been deleted, so the diff is no longer available. The discussion below is kept as part of the record." %}
{% else %}
{% trans "This branch contains no changes." %}
{% endif %} {% endfor %} {% if orphaned_threads %}

{% trans "Discussion from the deleted branch" %}

{% for thread in orphaned_threads %}
{{ thread.comment.author }} {{ thread.comment.created|isodatetime:"minutes" }} {% if thread.comment.change_label %} {{ thread.comment.change_label }} {% endif %} {% if thread.comment.resolved %}{% trans "Resolved" %}{% endif %}
{{ thread.comment.text|markdown }}
{% for reply in thread.replies %}
{{ reply.author }} {{ reply.created|isodatetime:"minutes" }}
{{ reply.text|markdown }}
{% endfor %}
{% endfor %}
{% endif %}
{% endblock %}