parent
a664ad3328
commit
77841909fe
4 changed files with 21 additions and 6 deletions
|
@ -67,6 +67,11 @@
|
|||
<p>{{ activity.content | safe }}</p>
|
||||
</div>
|
||||
<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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue