Make it possible to respond to a comment

This commit is contained in:
Bat
2018-05-10 15:26:12 +01:00
parent 56f4a598e2
commit b506e93bd8
3 changed files with 13 additions and 13 deletions
-5
View File
@@ -9,11 +9,6 @@ Comment "{{ post.title }}"
<form method="post">
<label for="content">Content</label>
<textarea name="content"></textarea>
{% if responding_to %}
<input name="respond_to" value="{{ responding_to }}">
{% endif %}
<input type="submit" value="Submit comment"/>
</form>
{% endblock content %}
+2 -1
View File
@@ -18,7 +18,8 @@
<div id="comment-{{ comment.id }}">
<b>{{ comment.author.display_name }}</b>
<div>{{ comment.content | safe }}</div>
<a href="comment?responding_to={{ comment.id }}">Respond</a>
</div>
{% endfor %}
<a href="comment">Comment</a>
<a href="comment?">Comment</a>
{% endblock content %}