{% extends "djeddit/user_page.html" %} {% load djeddit_tags %} {% block navtabs %}
  • Threads
  • Replies
  • {% endblock %} {% block groupItems %} {# list of threads & comments by date #} {% with True as showTopic %} {% for item in items %} {% if item.getName == 'Thread' %} {% with item as thread %} {% include 'djeddit/thread_item.html' %} {% endwith %} {% elif item.getName == 'Post' %} {% with item as reply %} {% include 'djeddit/user_reply_item.html' %} {% endwith %} {% endif %} {% endfor %} {% endwith %} {% endblock %} {% block sideContent %} {# User statistics #}
    {# list number of comments, number of threads , totoal thread points, total reply points #}
    {% getAmount tCount 'thread' %}
    {% getAmount rCount 'reply' %}
    {% getAmount tPoints 'point' infix='thread' %}
    {% getAmount rPoints 'point' infix='reply' %}
    {# TODO: list user creation date, last activity date #}
    {% endblock %}