diff options
author | Jayaram Pai | 2014-04-19 18:12:57 +0530 |
---|---|---|
committer | Jayaram Pai | 2014-04-19 18:12:57 +0530 |
commit | 1f0b55a3e1500660945f0702aa00c90a23ca4d95 (patch) | |
tree | 5ae3d6615149261115dbf3ebc5155db5267d8fe7 /static/website/templates/user-answers.html | |
parent | bf734e04b25ca97c897f431af8ac9966279337f5 (diff) | |
parent | 2fbf3ecf6cae63691380ec8cc9df2c4beff29dae (diff) | |
download | spoken-tutorial-forums-1f0b55a3e1500660945f0702aa00c90a23ca4d95.tar.gz spoken-tutorial-forums-1f0b55a3e1500660945f0702aa00c90a23ca4d95.tar.bz2 spoken-tutorial-forums-1f0b55a3e1500660945f0702aa00c90a23ca4d95.zip |
fixed merge conflict
Diffstat (limited to 'static/website/templates/user-answers.html')
-rw-r--r-- | static/website/templates/user-answers.html | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/static/website/templates/user-answers.html b/static/website/templates/user-answers.html new file mode 100644 index 0000000..34a1c68 --- /dev/null +++ b/static/website/templates/user-answers.html @@ -0,0 +1,36 @@ +{% extends 'website/templates/base.html' %} +{% load count_tags %} +{% block content %} + <h4>My Answers</h4> + {% for answer in answers%} + <div class="my-answer"> + <span class="body"> + <a href="{% url 'website:get_question' answer.question.id %}#answer{{ answer.id }}">{{ answer.body|safe }}</a> + </span> + <br> + <span class="date"> + <small> + Replied on: + {{ answer.date_created }} + </small> + </span> + </div> + {% endfor %} + + {% if total > 10 %} + <ul class="pagination pull-right"> + {% for i in total|get_range:"0,10" %} + <li> + <a href="{% url 'website:user_answers' user.id %}?marker={{ i }}"> + {% if i == marker %} + <strong>{{ i|div:"10"|inc }}</strong> + {% else %} + {{ i|div:"10"|inc }} + {% endif %} + </a> + </li> + {% endfor %} + </ul> + {% endif %} + +{% endblock %} |