From 368f83733ff68988861f96fbcaa5d8b5aec3a0e5 Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 8 Nov 2024 21:30:08 +0200 Subject: [PATCH] fix counter --- files/templates/group_memberships.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/files/templates/group_memberships.html b/files/templates/group_memberships.html index 676ba6b56..3b208cb93 100644 --- a/files/templates/group_memberships.html +++ b/files/templates/group_memberships.html @@ -76,7 +76,11 @@ {% for membership in memberships %} - {{loop.index + ((page - 1) * 500 + 1)}} + {% set counter = loop.index %} + {% if page > 1 %} + {% set counter = counter + (page - 1) * 500 + 1 %} + {% endif %} + {{counter}} {% set is_owner = membership.user_id == group.owner_id %} {% with user=membership.user %}