Mercurial > agora
view templates/comments/rawcomment.html @ 196:134f726fd62c
Removed extrawhitespaces and moved comments template files to templates folder
author | Ahsan Ali Shahid <ahsan.ali.shahid@gmail.com> |
---|---|
date | Thu, 04 Jul 2013 15:45:50 +0500 |
parents | comments/rawcomment.html@50ba20441122 |
children | 6f285552a9d0 |
line wrap: on
line source
{% load comments %} {% load mptt_tags %} <div id = "comment"> {% if user.is_authenticated %} {% render_comment_form for object %} {% get_comment_list for object as comments %} {% if comments %} {% recursetree comments %} <a name = "c{{ node.id }}"> </a> <!-- {{ node.id }} --> <div class = "comment-node"> <p class = "comment-bar"><a href = "{{ object.get_absolute_url }}#c{{ node.id }}"><strong>{{ node.user }} </strong> ยท {{ node.submit_date|timesince }} ago </a> </p> <p class = "comment"><p class = "comment-body"> {{ node.comment }} </p> {% render_comment_form for object %} </div> {# recursion tree logic #} {% if not node.is_leaf_node %} <div class = "comment-node-child"> {{ children }} </div> {% endif %} {% endrecursetree %} {% endif%} {% else %} <h4>You need to be logged in to see comments</h4> {% endif%} </div>