diff options
author | Jayaram Pai | 2013-12-11 15:31:24 +0530 |
---|---|---|
committer | Jayaram Pai | 2013-12-11 15:31:24 +0530 |
commit | 3a680b5d2442268ab117c0f98f21a039d4544bd8 (patch) | |
tree | ad3b7e40a99cea53d63d0dc9e5fe216178dff7b9 /static/website/templates/user-replies.html | |
parent | 0dd964ec05401809a408ab55d5517d3b2fba3a85 (diff) | |
download | FOSSEE-Forum-3a680b5d2442268ab117c0f98f21a039d4544bd8.tar.gz FOSSEE-Forum-3a680b5d2442268ab117c0f98f21a039d4544bd8.tar.bz2 FOSSEE-Forum-3a680b5d2442268ab117c0f98f21a039d4544bd8.zip |
base one
Diffstat (limited to 'static/website/templates/user-replies.html')
-rw-r--r-- | static/website/templates/user-replies.html | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/static/website/templates/user-replies.html b/static/website/templates/user-replies.html new file mode 100644 index 0000000..c31b854 --- /dev/null +++ b/static/website/templates/user-replies.html @@ -0,0 +1,36 @@ +{% extends 'website/templates/base.html' %} +{% load count_tags %} +{% block content %} + <h4>My Replies</h4> + {% for reply in replies%} + <div class="my-reply"> + <span class="body"> + {{ reply.body|safe }} + </span> + <br> + <span class="date"> + <small> + Replied on: + {{ reply.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_replies' 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 %} |