{% extends "core/base.jinja" %} {% from 'core/macros.jinja' import user_profile_link %} {% block title %} {% trans counter_name=counter %}{{ counter_name }} stats{% endtrans %} {% endblock %} {% block content %}

{% trans counter_name=counter %}{{ counter_name }} stats{% endtrans %}

{% trans counter_name=counter.name %}Top 100 {{ counter_name }}{% endtrans %}

{% for r in top %} {% set customer=Customer.objects.filter(user__id=r.customer__user).first() %} {% if customer.user == user %} {% else %} {% endif %} {% endfor %}
{% trans %}Nb{% endtrans %} {% trans %}User{% endtrans %} {% trans %}Promo{% endtrans %} {% trans %}Clubs{% endtrans %} {% trans %}Total{% endtrans %} {% trans %}Percentage{% endtrans %}
{{ loop.index }} {{ customer.user.get_display_name() }} {{ customer.user.promo or '' }} {% for m in customer.user.memberships.filter(club__parent=None, end_date=None, role__gt=settings.SITH_MAXIMUM_FREE_ROLE).all() -%} {%- if loop.index>1 -%}, {% endif -%} {{ m.club.name }} {%- endfor %} {{ r.selling_sum }} € {{ '%.2f'|format(100 * r.selling_sum / total_sellings) }}
{% endblock %}