2021-09-24 06:35:51 -04:00
|
|
|
{% extends 'groups/layout.html' %}
|
|
|
|
{% load i18n %}
|
|
|
|
{% load bookwyrm_tags %}
|
|
|
|
{% load markdown %}
|
|
|
|
|
|
|
|
{% block panel %}
|
|
|
|
|
|
|
|
<div class="columns mt-3">
|
|
|
|
<section class="column is-three-quarters">
|
|
|
|
{% if request.GET.updated %}
|
|
|
|
<div class="notification is-primary">
|
|
|
|
{% trans "You successfully added a user to this group!" %}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
2021-09-24 07:24:06 -04:00
|
|
|
{% if not group.members.exists %}
|
2021-09-24 06:35:51 -04:00
|
|
|
<p>{% trans "This group has no members" %}</p>
|
|
|
|
{% else %}
|
2021-09-24 07:24:06 -04:00
|
|
|
<h2 class="heading">Group Members</h2>
|
|
|
|
<ul start="{{ members.start_index }}" class="ordered-list">
|
|
|
|
{% for member in group.members.all %}
|
2021-09-24 06:35:51 -04:00
|
|
|
<li class="block mb-5">
|
2021-09-24 07:24:06 -04:00
|
|
|
<div class="column is-one-third">
|
|
|
|
{% include 'directory/user_card.html' %}
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
{% endif %}
|
|
|
|
{% if not group.lists.exists %}
|
|
|
|
<p>{% trans "This group has no lists" %}</p>
|
|
|
|
{% else %}
|
|
|
|
<h2 class="heading">Lists</h2>
|
|
|
|
<ul start="{{ lists.start_index }}" class="ordered-list">
|
|
|
|
{% for list in group.lists.all %}
|
|
|
|
<li class="block mb-5">
|
|
|
|
<!-- TODO: make these proper list cards -->
|
2021-09-24 06:35:51 -04:00
|
|
|
<div class="card">
|
2021-09-24 07:24:06 -04:00
|
|
|
<a href={{ member.local_path }}>{{ list.name }}</a>
|
2021-09-24 06:35:51 -04:00
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
2021-09-24 07:24:06 -04:00
|
|
|
</ul>
|
2021-09-24 06:35:51 -04:00
|
|
|
{% endif %}
|
|
|
|
{% include "snippets/pagination.html" with page=items %}
|
|
|
|
</section>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|