mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2025-01-09 16:55:29 +00:00
Group accept and leave notification
This commit is contained in:
parent
cded3e973d
commit
a5e761b134
2 changed files with 48 additions and 0 deletions
|
@ -13,10 +13,34 @@
|
||||||
|
|
||||||
{% block description %}
|
{% block description %}
|
||||||
|
|
||||||
|
{% if other_user_count == 0 %}
|
||||||
|
|
||||||
{% blocktrans trimmed with group_name=notification.related_group.name group_path=notification.related_group.local_path %}
|
{% blocktrans trimmed with group_name=notification.related_group.name group_path=notification.related_group.local_path %}
|
||||||
<a href="{{ related_user_link }}">{{ related_user }}</a>
|
<a href="{{ related_user_link }}">{{ related_user }}</a>
|
||||||
accepted your invitation to join group
|
accepted your invitation to join group
|
||||||
"<a href="{{ group_path }}">{{ group_name }}</a>"
|
"<a href="{{ group_path }}">{{ group_name }}</a>"
|
||||||
{% endblocktrans %}
|
{% endblocktrans %}
|
||||||
|
|
||||||
|
{% elif other_user_count == 1 %}
|
||||||
|
|
||||||
|
{% blocktrans trimmed with group_name=notification.related_group.name group_path=notification.related_group.local_path %}
|
||||||
|
<a href="{{ related_user_link }}">{{ related_user }}</a>
|
||||||
|
and
|
||||||
|
<a href="{{ second_user_link }}">{{ second_user }}</a>
|
||||||
|
accepted your invitation to join group
|
||||||
|
"<a href="{{ group_path }}">{{ group_name }}</a>"
|
||||||
|
{% endblocktrans %}
|
||||||
|
|
||||||
|
{% else %}
|
||||||
|
|
||||||
|
{% blocktrans trimmed with group_name=notification.related_group.name group_path=notification.related_group.local_path %}
|
||||||
|
<a href="{{ related_user_link }}">{{ related_user }}</a>
|
||||||
|
and
|
||||||
|
{{ other_user_display_count }} others
|
||||||
|
accepted your invitation to join group
|
||||||
|
"<a href="{{ group_path }}">{{ group_name }}</a>"
|
||||||
|
{% endblocktrans %}
|
||||||
|
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -13,10 +13,34 @@
|
||||||
|
|
||||||
{% block description %}
|
{% block description %}
|
||||||
|
|
||||||
|
{% if other_user_count == 0 %}
|
||||||
|
|
||||||
{% blocktrans trimmed with group_name=notification.related_group.name group_path=notification.related_group.local_path %}
|
{% blocktrans trimmed with group_name=notification.related_group.name group_path=notification.related_group.local_path %}
|
||||||
<a href="{{ related_user_link }}">{{ related_user }}</a>
|
<a href="{{ related_user_link }}">{{ related_user }}</a>
|
||||||
has left your group
|
has left your group
|
||||||
"<a href="{{ group_path }}">{{ group_name }}</a>"
|
"<a href="{{ group_path }}">{{ group_name }}</a>"
|
||||||
{% endblocktrans %}
|
{% endblocktrans %}
|
||||||
|
|
||||||
|
{% elif other_user_count == 1 %}
|
||||||
|
|
||||||
|
{% blocktrans trimmed with group_name=notification.related_group.name group_path=notification.related_group.local_path %}
|
||||||
|
<a href="{{ related_user_link }}">{{ related_user }}</a>
|
||||||
|
and
|
||||||
|
<a href="{{ second_user_link }}">{{ second_user }}</a>
|
||||||
|
have left your group
|
||||||
|
"<a href="{{ group_path }}">{{ group_name }}</a>"
|
||||||
|
{% endblocktrans %}
|
||||||
|
|
||||||
|
{% else %}
|
||||||
|
|
||||||
|
{% blocktrans trimmed with group_name=notification.related_group.name group_path=notification.related_group.local_path %}
|
||||||
|
<a href="{{ related_user_link }}">{{ related_user }}</a>
|
||||||
|
and
|
||||||
|
{{ other_user_display_count }} others
|
||||||
|
have left your group
|
||||||
|
"<a href="{{ group_path }}">{{ group_name }}</a>"
|
||||||
|
{% endblocktrans %}
|
||||||
|
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Loading…
Reference in a new issue