fix counter

master
Aevann 2024-11-08 21:30:08 +02:00
parent 3c6dc8f4ad
commit 368f83733f
1 changed files with 5 additions and 1 deletions

View File

@ -76,7 +76,11 @@
<tbody id="{{name}}_tbody">
{% for membership in memberships %}
<tr id="{{membership.user_id}}">
<td id="counter-{{membership.user_id}}">{{loop.index + ((page - 1) * 500 + 1)}}</td>
{% set counter = loop.index %}
{% if page > 1 %}
{% set counter = counter + (page - 1) * 500 + 1 %}
{% endif %}
<td id="counter-{{membership.user_id}}">{{counter}}</td>
{% set is_owner = membership.user_id == group.owner_id %}
<td {% if (is_owner or membership.is_mod) and not membership.user.earlylife %}class="unbreakable"{% endif %}>
{% with user=membership.user %}