1
0
Fork 0

Adds commenting

This commit is contained in:
Mouse Reeve 2020-02-17 21:39:08 -08:00
parent ff5217efd8
commit 9194b3c50d
8 changed files with 89 additions and 10 deletions

View file

@ -66,7 +66,15 @@
<p>{{ activity.rating | stars }}</p>
<p>{{ activity.content | safe }}</p>
</div>
<div class="interaction"><button>⭐️ Like</button></div>
<div class="interaction">
<button>⭐️ Like</button>
<form name="comment" action="/comment" method="post">
{% csrf_token %}
<input type="hidden" name="review" value="{{ activity.id }}"></input>
{{ comment_form.content }}
<button type="submit">Comment</button>
</form>
</div>
{% elif activity.status_type == 'Note' %}
posted</h2>
{{ activity.content | safe }}