Fix feed display

This commit is contained in:
Mouse Reeve
2020-03-09 17:27:54 -07:00
parent 78fa9a3a20
commit 99a060311b
5 changed files with 19 additions and 5 deletions

View File

@ -1,7 +1,15 @@
{% load fr_display %}
<div class="interaction">
{% if activity.favorites.all %}
<span>
{{ activity.favorites.count }} like(s)
{{ activity.favorites.count }} like{{activity.favorites.count|pluralize }}
</span>
{% endif %}
{% if activity|reply_count %}
<span>
<a href="{{ activity.absolute_id }}">
{{ activity|reply_count }} repl{{ activity|reply_count|pluralize:'y,ies' }}
</a>
</span>
{% endif %}
<form name="favorite" action="/favorite/{{ activity.id }}" method="post">