{% extends 'qa/base.html' %} {% load bootstrap3 %} {% load django_markdown %} {% load staticfiles %} {% block content %} {% if question.closed %}
{% else %} {% if question.reward %}
{% else %}
{% endif %} {% endif %} {% if message %} {% endif %} {% if question.reward %} {% endif %}
{% if user.is_authenticated %}
{{ question.votes }}
{% csrf_token %}
{% csrf_token %}
{% endif %} Posted by {{ question.user_data.user.username }}, {{ question.pub_date }}

Q: {{ question.title }}

{{ question.description }}

{% if question.closed %}

This Question has been closed.

{% else %} Answer this Question! comment this Question! {% endif %}

{% if last_comments %}

comments

{% for comment in last_comments %}

{{ comment.comment_text }}, {{ comment.user.username }}

{{ comment.pub_date }}

{% endfor %} {% endif %} {% if question.answer_set %}

Answers


{% for answer in question.answer_set.all %}
{% if user.is_authenticated %}
{{ answer.votes }}
{% csrf_token %}
{% csrf_token %}
{% endif %}
Comment   {% if answer.votes > 0 %} {% elif answer.votes == 0 %} {% else %} {% endif %} {% if answer.answercomment_set %} {% for comment in answer.answercomment_set.all %}

{{ comment.comment_text }}, {{ comment.user.username }}

{{ comment.pub_date }}


{% endfor %} {% endif %}
{% if answer.user.userqaprofile.picture %} {% else %} {% endif %}

- {{ answer.user.username }} ({{ answer.user.userqaprofile.points }})


{% endfor %} {% else %} question

This question is still open, Write answer!

{% endif %} {% endblock content %} {% block extra_js %} {% endblock extra_js %}