Adds commenting
This commit is contained in:
parent
ff5217efd8
commit
9194b3c50d
8 changed files with 89 additions and 10 deletions
|
@ -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 }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue