{% extends "djangovoice/feedback_base.html" %} {% load url from future %} {% load gravatar voting_tags djangovoice_tags comments i18n %} {% block title %}{% trans "Feedback" %}{% endblock %} {% block actions %} {% if user.is_staff or user == feedback.user %}
  • {% trans "Edit" %} →
  • {% trans "Delete" %} →
  • {% endif %} {% endblock %} {% block content %} {% if feedback.duplicate %}
    {% trans "Duplicate of" %} {{ feedback.duplicate.title }}
    {% endif %}
    {% score_for_object feedback as score %} {{ score.score|default:0 }}

    {% blocktrans %} from {{ score.num_votes }} Vote{{ score.num_votes|pluralize }} {% endblocktrans %}

    {% csrf_token %}
    {% csrf_token %}

    {{ feedback.type.title }} {{ feedback.title }} {{ feedback.status.title }}

    {% if feedback.user %} {% trans "Submitted by:" %} {% gravatar feedback.user.username 15 %} {% user_name feedback.user %} {% 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 %}
    {% gravatar comment.user.username 40 %}
    {% if comment.user.is_staff %}
    {% trans "Staff" %}
    {% endif %}
    {% trans "From:" %} {% ifequal comment.user user %} {% trans "you" %} {% else %} {% user_name comment.user %} {% endifequal %} {% 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 %}