mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-26 19:41:11 +00:00
Comma format count of other users in a notification
This commit is contained in:
parent
79f3382ece
commit
c65381adf9
1 changed files with 2 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
||||||
{% load notification_page_tags %}
|
{% load notification_page_tags %}
|
||||||
|
{% load humanize %}
|
||||||
{% related_status notification as related_status %}
|
{% related_status notification as related_status %}
|
||||||
|
|
||||||
{% with related_users=notification.related_users.all %}
|
{% with related_users=notification.related_users.all %}
|
||||||
|
@ -40,7 +41,7 @@
|
||||||
{% with related_user_link=related_users.first.local_path %}
|
{% with related_user_link=related_users.first.local_path %}
|
||||||
{% with second_user=related_users.all.1.display_name %}
|
{% with second_user=related_users.all.1.display_name %}
|
||||||
{% with second_user_link=related_users.all.1.local_path %}
|
{% with second_user_link=related_users.all.1.local_path %}
|
||||||
{% with other_user_count=notification.related_users.count|add:"-1" %}
|
{% with other_user_count=notification.related_users.count|add:"-1"|intcomma %}
|
||||||
{% block description %}{% endblock %}
|
{% block description %}{% endblock %}
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
|
|
Loading…
Reference in a new issue