Resolve PR review gaps across comments, security, feeds, and UX
This commit is contained in:
@@ -44,6 +44,31 @@
|
||||
</aside>
|
||||
{% if page.comments_enabled %}
|
||||
<section>
|
||||
<h2>Comments</h2>
|
||||
{% for comment in approved_comments %}
|
||||
<article id="comment-{{ comment.id }}">
|
||||
<p><strong>{{ comment.author_name }}</strong></p>
|
||||
<p>{{ comment.body }}</p>
|
||||
{% for reply in comment.replies.all %}
|
||||
<article id="comment-{{ reply.id }}">
|
||||
<p><strong>{{ reply.author_name }}</strong></p>
|
||||
<p>{{ reply.body }}</p>
|
||||
</article>
|
||||
{% endfor %}
|
||||
<form method="post" action="{% url 'comment_post' %}">
|
||||
{% csrf_token %}
|
||||
<input type="hidden" name="article_id" value="{{ page.id }}" />
|
||||
<input type="hidden" name="parent_id" value="{{ comment.id }}" />
|
||||
<input type="text" name="author_name" required />
|
||||
<input type="email" name="author_email" required />
|
||||
<textarea name="body" required></textarea>
|
||||
<input type="text" name="honeypot" style="display:none" />
|
||||
<button type="submit">Reply</button>
|
||||
</form>
|
||||
</article>
|
||||
{% empty %}
|
||||
<p>No comments yet.</p>
|
||||
{% endfor %}
|
||||
<form method="post" action="{% url 'comment_post' %}">
|
||||
{% csrf_token %}
|
||||
<input type="hidden" name="article_id" value="{{ page.id }}" />
|
||||
|
||||
Reference in New Issue
Block a user