Cleans up feed page

Fixes #53
This commit is contained in:
Mouse Reeve
2020-02-21 15:39:25 -08:00
parent 0ce9677029
commit 3eb91980e0
7 changed files with 108 additions and 57 deletions

View File

@ -0,0 +1,18 @@
<div class="interaction">
{% if activity.favorites.all %}
<span>
{{ activity.favorites.count }} like(s)
</span>
{% endif %}
<form name="favorite" action="/favorite/{{ activity.id }}" method="post">
{% csrf_token %}
<button>⭐️ Like</button>
</form>
<form name="comment" action="/comment" method="post">
{% csrf_token %}
<input type="hidden" name="parent" value="{{ activity.id }}"></input>
{{ comment_form.content }}
<button type="submit">Comment</button>
</form>
</div>