{% extends "core/base.jinja" %} {%- block additional_css -%} {%- endblock -%} {% block title %} {% trans user_name=profile.get_display_name() %}{{ user_name }}'s stats{% endtrans %} {% endblock %} {% block content %}
{% if profile.permanencies %}

{% trans %}Permanencies{% endtrans %}

Foyer :{{ total_foyer_time }}
Gommette :{{ total_gommette_time }}
MDE :{{ total_mde_time }}
Total :{{ total_perm_time }}
{% endif %}

{% trans %}Buyings{% endtrans %}

Foyer :{{ total_foyer_buyings }} €
Gommette :{{ total_gommette_buyings }} €
MDE :{{ total_mde_buyings }} €
Total :{{ total_foyer_buyings + total_gommette_buyings + total_mde_buyings }} €

{% trans %}Product top 10{% endtrans %}

{% for p in top_product %} {% endfor %}
{% trans %}Product{% endtrans %} {% trans %}Quantity{% endtrans %}
{{ p['product__name'] }} {{ p['product_sum'] }}
{% endblock %}