From 5aa12acb4a15cd4199589ccb01905657557cb922 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Tue, 18 Nov 2014 04:16:22 +0100 Subject: models: add active flag for membership Membership for a group should be requested and has to be approved by an admin of the group. --- templates/group.html | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) (limited to 'templates') diff --git a/templates/group.html b/templates/group.html index c6a83d1..16f62ed 100644 --- a/templates/group.html +++ b/templates/group.html @@ -24,13 +24,36 @@ {% if admin %} + {% for member in members|rejectattr("active") %} + {% if loop.first %} +
+
+

Pending members

+
+ + + + + + + {% endif %} + + + + + {% if loop.last %} +
usernamemail
{{member.user.username}}{{member.user.email}}
+
+ {% endif %} + {% endfor %} +

-- cgit v1.2.3-1-g7c22