2021-09-24 21:36:35 -04:00
|
|
|
{% load i18n %}
|
|
|
|
{% load utilities %}
|
|
|
|
{% load humanize %}
|
2021-09-25 05:53:06 -04:00
|
|
|
{% load bookwyrm_tags %}
|
2021-09-24 21:36:35 -04:00
|
|
|
|
2021-09-27 07:21:00 -04:00
|
|
|
<h2 class="title is-5">Group Members</h2>
|
2021-10-02 01:48:34 -04:00
|
|
|
<p class="subtitle is-6">{% trans "Members can add and remove books on a group's book lists" %}</p>
|
2021-09-24 21:36:35 -04:00
|
|
|
|
|
|
|
<div class="column is-flex is-flex-grow-0">
|
2021-10-01 20:47:42 -04:00
|
|
|
{% for membership in group.memberships.all %}
|
|
|
|
{% with member=membership.user %}
|
2021-09-25 05:53:06 -04:00
|
|
|
<div class="box has-text-centered is-shadowless has-background-white-bis my-0 mx-2">
|
2021-09-25 03:34:44 -04:00
|
|
|
<a href="{{ member.local_path }}" class="has-text-black">
|
|
|
|
{% include 'snippets/avatar.html' with user=member large=True %}
|
|
|
|
<span title="{{ member.display_name }}" class="is-block is-6 has-text-weight-bold">{{ member.display_name|truncatechars:10 }}</span>
|
|
|
|
<span title="@{{ member|username }}" class="is-block pb-3">@{{ member|username|truncatechars:8 }}</span>
|
2021-09-24 21:36:35 -04:00
|
|
|
</a>
|
2021-09-27 01:36:41 -04:00
|
|
|
{% if group.user == member %}
|
2021-09-25 06:23:59 -04:00
|
|
|
<span class="icon icon-star-full" title="Manager">
|
|
|
|
<span class="is-sr-only">Manager</span>
|
|
|
|
</span>
|
|
|
|
{% endif %}
|
2021-10-01 23:48:53 -04:00
|
|
|
{% include 'snippets/remove_from_group_button.html' with user=member group=group minimal=True %}
|
|
|
|
{% if request.user in member.following.all %}
|
2021-09-24 21:36:35 -04:00
|
|
|
<p class="help">
|
|
|
|
{% trans "Follows you" %}
|
|
|
|
</p>
|
|
|
|
{% endif %}
|
2021-09-25 05:53:06 -04:00
|
|
|
</div>
|
2021-10-01 20:47:42 -04:00
|
|
|
{% endwith %}
|
2021-09-25 05:53:06 -04:00
|
|
|
{% endfor %}
|
|
|
|
</div>
|