Make it possible to respond to a comment
This commit is contained in:
@@ -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 %}
|
||||
|
||||
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user