diff --git a/ldap_frontend/templates/groups/list.html b/ldap_frontend/templates/groups/list.html index 72557cf..4a7c37a 100644 --- a/ldap_frontend/templates/groups/list.html +++ b/ldap_frontend/templates/groups/list.html @@ -6,20 +6,30 @@ group name group description + member? member count {% for group in groups|sort %} +{% if CURRENT_USER.entry_dn in group["member"] or USER_IS_ADMIN %} -{% if USER_IS_ADMIN %} - {{ group["ou"] }} -{% else %} - {{ group["ou"] }} -{% endif %} - {{ group["description"] }} + +{% if USER_IS_ADMIN %} + {{ group["ou"] }} +{% else %} + {{ group["ou"] }} +{% endif %} + + {{ group["description"]|e }} +{% if CURRENT_USER.entry_dn in group["member"] %} + ✅ +{% else %} + ❌ +{% endif %} {{ group["member"]|length }} +{% endif %} {% endfor %}