view 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
line wrap: on
line source

{% load comments %}
{% load mptt_tags %}
<div id = "comment">

{% 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%}

</div>