diff --git a/bookwyrm/templates/notifications/items/accept.html b/bookwyrm/templates/notifications/items/accept.html index 76b66343b..f97c93c1c 100644 --- a/bookwyrm/templates/notifications/items/accept.html +++ b/bookwyrm/templates/notifications/items/accept.html @@ -13,10 +13,34 @@ {% block description %} +{% if other_user_count == 0 %} + {% blocktrans trimmed with group_name=notification.related_group.name group_path=notification.related_group.local_path %} {{ related_user }} accepted your invitation to join group "{{ group_name }}" {% endblocktrans %} +{% elif other_user_count == 1 %} + + {% blocktrans trimmed with group_name=notification.related_group.name group_path=notification.related_group.local_path %} + {{ related_user }} + and + {{ second_user }} + accepted your invitation to join group + "{{ group_name }}" + {% endblocktrans %} + +{% else %} + + {% blocktrans trimmed with group_name=notification.related_group.name group_path=notification.related_group.local_path %} + {{ related_user }} + and + {{ other_user_display_count }} others + accepted your invitation to join group + "{{ group_name }}" + {% endblocktrans %} + +{% endif %} + {% endblock %} diff --git a/bookwyrm/templates/notifications/items/leave.html b/bookwyrm/templates/notifications/items/leave.html index 54f76d8df..99b6a2324 100644 --- a/bookwyrm/templates/notifications/items/leave.html +++ b/bookwyrm/templates/notifications/items/leave.html @@ -13,10 +13,34 @@ {% block description %} +{% if other_user_count == 0 %} + {% blocktrans trimmed with group_name=notification.related_group.name group_path=notification.related_group.local_path %} {{ related_user }} has left your group "{{ group_name }}" {% endblocktrans %} +{% elif other_user_count == 1 %} + + {% blocktrans trimmed with group_name=notification.related_group.name group_path=notification.related_group.local_path %} + {{ related_user }} + and + {{ second_user }} + have left your group + "{{ group_name }}" + {% endblocktrans %} + +{% else %} + + {% blocktrans trimmed with group_name=notification.related_group.name group_path=notification.related_group.local_path %} + {{ related_user }} + and + {{ other_user_display_count }} others + have left your group + "{{ group_name }}" + {% endblocktrans %} + +{% endif %} + {% endblock %}