comparison templates/comments/rawcomment.html @ 213:6f285552a9d0 default tip

Remove requirement to be logged in to see comments
author Jordi Gutiérrez Hermoso <jordigh@octave.org>
date Thu, 16 Jan 2014 10:59:05 -0500
parents 134f726fd62c
children
comparison
equal deleted inserted replaced
212:b3c3d940cc87 213:6f285552a9d0
1 {% load comments %} 1 {% load comments %}
2 {% load mptt_tags %} 2 {% load mptt_tags %}
3 <div id = "comment"> 3 <div id = "comment">
4
5
6
7 {% if user.is_authenticated %}
8
9 4
10 {% render_comment_form for object %} 5 {% render_comment_form for object %}
11 6
12 {% get_comment_list for object as comments %} 7 {% get_comment_list for object as comments %}
13 8
29 {% endif %} 24 {% endif %}
30 25
31 {% endrecursetree %} 26 {% endrecursetree %}
32 {% endif%} 27 {% endif%}
33 28
34 {% else %}
35 <h4>You need to be logged in to see comments</h4>
36
37 {% endif%}
38
39 </div> 29 </div>