user_replies.html 1.0 KB

123456789101112131415161718192021222324252627282930
  1. {% extends 'layout.html' %}
  2. {# Set variables for base layour #}
  3. {% set active_page = 'user' %}
  4. {% set title = '' %}
  5. {% block content %}
  6. <div class="user_activity">
  7. {% for comment in replies %}
  8. <div>
  9. {{ comment.text|md2html|safe }}
  10. {# Post info #}
  11. <div class="info">
  12. <a href="{{ url ('post', hash_id=comment.postHashId) }}#comment-{{ comment.hashId }}">read</a>
  13. <a href="{{ url ('reply', hash_id=comment.hashId) }}">reply</a>
  14. by <a href="{{ url ("user_public", username=comment.username) }}">{{ comment.username }}</a> <time title="{{ comment.created|title }}" datetime="{{ comment.created|datetime }}"><em> {{ comment.created|ago }} </em></time> on <a href="{{ url ('post', hash_id=comment.postHashId) }}">{{ comment.postTitle }}</a>
  15. </div>
  16. </div>
  17. {% endfor %}
  18. </div>
  19. {% endblock %}