forked from MarseyWorld/MarseyWorld
fix counter
parent
3c6dc8f4ad
commit
368f83733f
|
@ -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 %}
|
||||
|
|
Loading…
Reference in New Issue