diff options
Diffstat (limited to 'static/website/templates/user-questions.html')
-rw-r--r-- | static/website/templates/user-questions.html | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/static/website/templates/user-questions.html b/static/website/templates/user-questions.html new file mode 100644 index 0000000..e3d2ab6 --- /dev/null +++ b/static/website/templates/user-questions.html @@ -0,0 +1,36 @@ +{% extends 'website/templates/base.html' %} +{% load count_tags %} +{% block content %} + <h4>My Questions</h4> + {% for question in questions %} + <div class="my-question"> + <span class="title"> + {{ question.title }} + </span> + <br> + <span class="date"> + <small> + Asked on: + {{ question.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_questions' 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 %} |