summaryrefslogtreecommitdiff
path: root/static/website/templates/user-replies.html
diff options
context:
space:
mode:
Diffstat (limited to 'static/website/templates/user-replies.html')
-rw-r--r--static/website/templates/user-replies.html36
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 %}