2021-05-22 18:20:39 +00:00
|
|
|
{% load i18n %}
|
|
|
|
{% load utilities %}
|
|
|
|
{% load humanize %}
|
|
|
|
<div class="columns is-mobile scroll-x mb-0">
|
|
|
|
{% for user in suggested_users %}
|
|
|
|
<div class="column is-flex is-flex-grow-0">
|
2022-02-20 00:34:17 +00:00
|
|
|
<div class="box has-text-centered is-shadowless has-background-tertiary m-0">
|
2021-05-22 18:20:39 +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>
|
|
|
|
{% include 'snippets/follow_button.html' with user=user minimal=True %}
|
2022-02-28 19:55:54 +00:00
|
|
|
{% if user.mutuals and not user.hide_follows %}
|
2021-05-22 18:20:39 +00:00
|
|
|
<p class="help">
|
2021-08-04 20:38:06 +00:00
|
|
|
{% blocktrans trimmed with mutuals=user.mutuals|intcomma count counter=user.mutuals %}
|
|
|
|
{{ mutuals }} follower you follow
|
|
|
|
{% plural %}
|
|
|
|
{{ mutuals }} followers you follow{% endblocktrans %}
|
2021-05-22 18:20:39 +00:00
|
|
|
</p>
|
|
|
|
{% elif user.shared_books %}
|
2021-08-04 20:38:06 +00:00
|
|
|
<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>
|
2021-05-22 18:20:39 +00:00
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
|