{% extends "djangovoice/base.html" %} {% load blocktrans trans from i18n %} {% load url from future %} {% load comments %} {% load vote_buttons_for from qhonuskan_votes %} {% load get_user_image display_name from djangovoice_tags %} {% block title %}{% trans "Feedback" %}{% endblock %} {% block content %} {{ feedback.type.title }} {{ feedback.status.title }} {% if feedback.duplicate %}
{% trans "Duplicate of" %} {{ feedback.duplicate.title }}
{% endif %}
{% vote_buttons_for feedback "djangovoice/includes/vote_buttons.html" %}

{{ feedback.title }}

{% if feedback.user %} {% trans "Submitted by" %} {{ feedback.user|display_name }} {% else %} {% trans "Submitted anonymously" %} {% endif %} {% trans "on" %} {{ feedback.created|date:"d M Y" }}

{% if feedback.description %}

{{ feedback.description|urlize|linebreaksbr }}

{% endif %}
{% get_comment_count for feedback as comment_count %} {% get_comment_list for feedback as comment_list %}

{% blocktrans %}Comments ({{ comment_count }}){% endblocktrans %}

{% if comment_list %} {% for comment in comment_list %}
{% get_user_image comment.user 40 %}
{% if comment.user.is_staff %}
{% trans "Staff" %}
{% endif %}
{% trans "From:" %} {% if user == comment.user %} {% trans "you" %} {% else %} {{ comment.user|display_name }} {% endif %} {% trans "on" %} {{ comment.submit_date|date:"M d Y" }} {% trans "at" %} {{ comment.submit_date|date:"fA" }}

{{ comment.comment|urlize|linebreaksbr }}

{% endfor %} {% else %}

{% trans "No one has commented. Have your say." %}

{% endif %} {% if user.is_authenticated %}

{% trans "Leave a comment" %}

{% get_comment_form for feedback as form %}
{% csrf_token %} {{ form.comment }} {{ form.honeypot }} {{ form.content_type }} {{ form.object_pk }} {{ form.timestamp }} {{ form.security_hash }}
{% endif %}
{% endblock %} {% block sidebar %} {% include "djangovoice/includes/sidebar_actions.html" %} {% endblock %}