From 264d9b2f3c4fc5ebc37a89d829a629250feacde5 Mon Sep 17 00:00:00 2001 From: Hugh Rundle Date: Fri, 24 Sep 2021 20:35:51 +1000 Subject: [PATCH] add group page template --- bookwyrm/templates/groups/group.html | 34 ++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 bookwyrm/templates/groups/group.html diff --git a/bookwyrm/templates/groups/group.html b/bookwyrm/templates/groups/group.html new file mode 100644 index 000000000..a8d65f7fc --- /dev/null +++ b/bookwyrm/templates/groups/group.html @@ -0,0 +1,34 @@ +{% extends 'groups/layout.html' %} +{% load i18n %} +{% load bookwyrm_tags %} +{% load markdown %} + +{% block panel %} + +
+
+ {% if request.GET.updated %} +
+ {% trans "You successfully added a user to this group!" %} +
+ {% endif %} + + {% if not members.object_list.exists %} +

{% trans "This group has no members" %}

+ {% else %} +
    + {% for member in members %} +
  1. +
    +

    member.username

    +
    +
+ + {% endfor %} + + {% endif %} + {% include "snippets/pagination.html" with page=items %} + + + +{% endblock %}