From fb085be02283e4230b182f30599a87c7949a875d Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Thu, 17 Sep 2020 14:02:40 +0200 Subject: [PATCH] Show groups in user list --- mpicms/templates/wagtailusers/users/list.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mpicms/templates/wagtailusers/users/list.html b/mpicms/templates/wagtailusers/users/list.html index d2b2180..64b17fd 100644 --- a/mpicms/templates/wagtailusers/users/list.html +++ b/mpicms/templates/wagtailusers/users/list.html @@ -25,6 +25,7 @@ {% endif %} {% trans "Level" %} + {% trans "Groups" %} {% trans "Status" %} {% trans "Last Login" %} @@ -43,6 +44,7 @@ {{ user.get_username }} {% if user.is_superuser %}{% trans "Admin" %}{% endif %} + {{ user.groups.all | join:"," }}
{% if user.is_active %}{% trans "Active" %}{% else %}{% trans "Inactive" %}{% endif %}
{% if user.last_login %}{% blocktrans with time_period=user.last_login|timesince %}{{ time_period }} ago{% endblocktrans %}{% endif %}