2021-09-25 01:11:58 +00:00
|
|
|
{% load i18n %}
|
|
|
|
{% load utilities %}
|
|
|
|
{% load humanize %}
|
2021-09-27 11:21:00 +00:00
|
|
|
|
2021-09-25 01:11:58 +00:00
|
|
|
{% if suggested_users %}
|
2022-01-02 23:09:52 +00:00
|
|
|
<h2 class="title is-5">
|
|
|
|
{% trans "Add new members!" %}
|
|
|
|
</h2>
|
2021-09-25 01:11:58 +00:00
|
|
|
<div class="column is-flex is-flex-grow-0">
|
2021-10-02 09:35:08 +00:00
|
|
|
{% for user in suggested_users %}
|
2022-02-20 00:34:17 +00:00
|
|
|
<div class="box has-text-centered is-shadowless has-background-tertiary m-2">
|
2021-09-25 01:11:58 +00:00
|
|
|
<a href="{{ user.local_path }}" class="has-text-black">
|
|
|
|
{% include 'snippets/avatar.html' with user=user large=True %}
|
|
|
|
<span title="{{ user.display_name }}" class="is-block is-6 has-text-weight-bold">{{ user.display_name|truncatechars:10 }}</span>
|
|
|
|
<span title="@{{ user|username }}" class="is-block pb-3">@{{ user|username|truncatechars:8 }}</span>
|
|
|
|
</a>
|
2021-10-16 05:43:09 +00:00
|
|
|
{% include 'snippets/add_to_group_button.html' with user=user group=group %}
|
2021-09-25 01:11:58 +00:00
|
|
|
{% if user.mutuals %}
|
|
|
|
<p class="help">
|
|
|
|
{% blocktrans trimmed with mutuals=user.mutuals|intcomma count counter=user.mutuals %}
|
|
|
|
{{ mutuals }} follower you follow
|
|
|
|
{% plural %}
|
|
|
|
{{ mutuals }} followers you follow{% endblocktrans %}
|
|
|
|
</p>
|
|
|
|
{% elif user.shared_books %}
|
|
|
|
<p class="help">
|
|
|
|
{% blocktrans trimmed with shared_books=user.shared_books|intcomma count counter=user.shared_books %}
|
|
|
|
{{ shared_books }} book on your shelves
|
|
|
|
{% plural %}
|
|
|
|
{{ shared_books }} books on your shelves
|
|
|
|
{% endblocktrans %}
|
|
|
|
</p>
|
|
|
|
{% elif request.user in user.following.all %}
|
|
|
|
<p class="help">
|
|
|
|
{% trans "Follows you" %}
|
|
|
|
</p>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
2021-10-02 09:35:08 +00:00
|
|
|
{% endfor %}
|
2021-09-25 01:11:58 +00:00
|
|
|
</div>
|
|
|
|
{% else %}
|
2021-10-23 13:59:06 +00:00
|
|
|
<p>
|
|
|
|
{% blocktrans trimmed %}
|
|
|
|
No potential members found for "{{ user_query }}"
|
|
|
|
{% endblocktrans %}
|
|
|
|
</p>
|
2021-10-04 11:20:02 +00:00
|
|
|
<br/>
|
2021-10-02 09:35:08 +00:00
|
|
|
|
2021-09-25 01:11:58 +00:00
|
|
|
{% endif %}
|