{% extends 'qa/base.html' %} {% load django_markdown %} {% load staticfiles %} {% block content %} {% if question.closed %}
{% else %} {% if question.reward %}
{% else %}
{% endif %} {% endif %} {% if message %} {% endif %} {% comment %} {% if question.reward %} {% endif %} {% endcomment %}
{% if user.is_authenticated and question.user != user %}
{{ question.total_points }}
{% csrf_token %}
{% csrf_token %}
{% endif %}
Posted by {{ question.user.username }}, {{ question.pub_date }} {% if user.is_authenticated and question.user == user %}Edit  {% endif %}

Q: {{ question.title }}

{{ question.description|markdown }}

{% if question.closed %}

This Question has been closed.

{% else %} Answer this Question! Comment this Question!
{% csrf_token %}
{% endif %}

{% if last_comments %}

comments

{% for comment in last_comments %}

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

{{ comment.pub_date }}

{% if comment.user == user %}Edit  {% endif %}
{% endfor %} {% endif %} {% if answers %}

Answers


{% for answer in answers %}
{% if user.is_authenticated and answer.user != user %}
{{ answer.total_points }}
{% csrf_token %}
{% csrf_token %}
{% endif %}
Comment   {% if answer.user == user %}Edit  {% endif %} {% if answer.answercomment_set %} {% for comment in answer.answercomment_set.all %}

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

{{ comment.pub_date }}

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

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

{% if user.is_authenticated and answer.question.user == user and answer.question.closed == False %}
{% csrf_token %}
{% else %} {% if answer.answer == True %}
{% endif %} {% endif %}
{% endfor %} {% else %} question

This question is still open, Write answer!

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