mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-10 19:01:01 +00:00
add group page template
This commit is contained in:
parent
9b6d2a9d88
commit
264d9b2f3c
1 changed files with 34 additions and 0 deletions
34
bookwyrm/templates/groups/group.html
Normal file
34
bookwyrm/templates/groups/group.html
Normal file
|
@ -0,0 +1,34 @@
|
|||
{% 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 %}
|
||||
|
||||
{% if not members.object_list.exists %}
|
||||
<p>{% trans "This group has no members" %}</p>
|
||||
{% else %}
|
||||
<ol start="{{ members.start_index }}" class="ordered-list">
|
||||
{% for member in members %}
|
||||
<li class="block mb-5">
|
||||
<div class="card">
|
||||
<p>member.username</p>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ol>
|
||||
{% endif %}
|
||||
{% include "snippets/pagination.html" with page=items %}
|
||||
</section>
|
||||
|
||||
</div>
|
||||
{% endblock %}
|
Loading…
Reference in a new issue