mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-23 08:36:32 +00:00
3eb91980e0
Fixes #53
18 lines
559 B
HTML
18 lines
559 B
HTML
<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>
|
|
|