Implement subcomment trees, replies to subcomments
This commit is contained in:
@@ -1,14 +1,5 @@
|
||||
{% extends 'base.html' %}
|
||||
|
||||
{% macro render_comment(comment) %}
|
||||
<div style="margin-left:20px">
|
||||
<p><i>{{ comment.author }}</i></p>
|
||||
<p>{{ comment.text }}</p>
|
||||
{% for c in comment.children %}
|
||||
{{ render_comment(c) }}
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endmacro %}
|
||||
{% from 'comment.html' import render_comment, reply %}
|
||||
|
||||
{% block content %}
|
||||
{% if manage %}
|
||||
@@ -20,6 +11,9 @@
|
||||
{% endif %}
|
||||
<p>{{ author }} - rjgoire</p>
|
||||
<p>{{ text }}</p>
|
||||
|
||||
{{ reply() }}
|
||||
|
||||
{% for c in comments %}
|
||||
{{ render_comment(c) }}
|
||||
{% endfor %}
|
||||
|
||||
Reference in New Issue
Block a user