mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-14 18:23:27 +00:00
43 lines
1.2 KiB
Django/Jinja
43 lines
1.2 KiB
Django/Jinja
{% extends "core/base.jinja" %}
|
|
|
|
{% block title %}
|
|
{% trans user_name=profile.get_display_name() %}{{ user_name }}'s stats{% endtrans %}
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
{% if profile.permanencies %}
|
|
<h3>{% trans %}Permanencies{% endtrans %}</h3>
|
|
<div>
|
|
<p>Total: {{ total_perm_time }}</p>
|
|
<p>Foyer: {{ total_foyer_time }}</p>
|
|
<p>MDE: {{ total_mde_time }}</p>
|
|
<p>La Gommette: {{ total_gommette_time }}</p>
|
|
</div>
|
|
{% endif %}
|
|
<h3>{% trans %}Buyings{% endtrans %}</h3>
|
|
<div>
|
|
<p>Foyer: {{ total_foyer_buyings }} €</p>
|
|
<p>MDE: {{ total_mde_buyings }} €</p>
|
|
<p>La Gommette: {{ total_gommette_buyings }} €</p>
|
|
</div>
|
|
<h3>{% trans %}Product top 10{% endtrans %}</h3>
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<td>{% trans %}Product{% endtrans %}</td>
|
|
<td>{% trans %}Quantity{% endtrans %}</td>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for p in top_product %}
|
|
<tr>
|
|
<td>{{ p['product__name'] }}</td>
|
|
<td>{{ p['product_sum'] }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{% endblock %}
|
|
|
|
|