comparison 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
comparison
equal deleted inserted replaced
195:baf8776dc44d 196:134f726fd62c
1 {% load comments %}
2 {% load mptt_tags %}
3 <div id = "comment">
4
5
6
7 {% if user.is_authenticated %}
8
9
10 {% render_comment_form for object %}
11
12 {% get_comment_list for object as comments %}
13
14 {% if comments %}
15 {% recursetree comments %}
16 <a name = "c{{ node.id }}"> </a>
17 <!-- {{ node.id }} -->
18 <div class = "comment-node">
19
20 <p class = "comment-bar"><a href = "{{ object.get_absolute_url }}#c{{ node.id }}"><strong>{{ node.user }} </strong> ยท {{ node.submit_date|timesince }} ago </a> </p>
21 <p class = "comment"><p class = "comment-body"> {{ node.comment }} </p>
22 {% render_comment_form for object %}
23 </div>
24 {# recursion tree logic #}
25 {% if not node.is_leaf_node %}
26 <div class = "comment-node-child">
27 {{ children }}
28 </div>
29 {% endif %}
30
31 {% endrecursetree %}
32 {% endif%}
33
34 {% else %}
35 <h4>You need to be logged in to see comments</h4>
36
37 {% endif%}
38
39 </div>