{% extends "base.html" %} {% load i18n %} {% load modeltags %} {% block context_menu %} {% if issue.is_open %}
{% trans "Back to list" %}
{% endif %} {% if issue.is_closed %}
{% trans "Back to list" %}
{% endif %} {% if issue.owner == user or user.is_superuser %} {% if issue.owner == user %}
{% trans "Edit" %}
{% endif %} {% if issue.is_open %}
{% trans "Close" %}
{% endif %} {% if issue.is_closed %}
{% trans "Reopen" %}
{% endif %} {% if issue.owner == user %}
{% trans "Delete" %}
{% endif %} {% endif %} {% endblock %} {% block content %}
{% with issue as object %}
{{ issue.get_state_display }}
{{ issue.owner|display_name }}
{{ issue.get_category_display }}
{% with "update_date" as name %} {% include "detail_field.html" %} {% endwith %} {% if issue.is_open %}
{{ issue.vote_count }} ({{ user_votes }}) {% if votes_remaining %}{% endif %} {% if user_votes %}{% endif %}  ({% blocktrans with votes_remaining as votes_remaining %}{{ votes_remaining }} votes remaining{% endblocktrans %})
{% endif %} {% with "subject" as name %} {% include "detail_multiline_field.html" %} {% endwith %} {% with "message" as name %} {% include "detail_multiline_field.html" %} {% endwith %} {% if user.is_superuser %} {% if issue.external_reference %}
{{ object.external_reference }}
{% endif %} {% endif %} {% endwith %}

{% trans "Comments" %}

{% if issue.comment_set.all %}
{% for comment in issue.comment_set.all %} {% endfor %}
{% trans "Author" %} {% trans "Update date" %} {% trans "Message" %} {% trans "Action" %}
{{ comment.owner|display_name }} {{ comment.update_date }} {{ comment.message|linebreaksbr }} {% if comment.owner == user %}{% trans "edit" %} {% trans "delete" %}{% endif %}
{% else %}
{% trans "No comments" %}
{% endif %}

{% trans "Comment" %}

{% csrf_token %}
{% with commentForm as form %} {% include "form.html" %} {% endwith %}
{% endblock %}