]> git.0d.be Git - django-panik-nonstop.git/blob - nonstop/templates/nonstop/statistics.html
stats: add info about quotas
[django-panik-nonstop.git] / nonstop / templates / nonstop / statistics.html
1 {% extends "base.html" %}
2 {% load i18n %}
3
4 {% block appbar %}
5 <h2>Nonstop - Statistics</h2>
6   <span class="actions">
7 <a href="?from=-7d">during last week</a>
8 <a href="?from=-30d">during last month</a>
9   </span>
10 {% endblock %}
11
12 {% block more-user-links %}
13 {{ block.super }}
14 <a href="{% url 'nonstop-quick-links' %}">Gestion nonstop</a>
15 {% endblock %}
16
17 {% block content %}
18
19 <div class="nonstop-stats">
20 {% for zone in zones %}
21 <div class="section">
22 <h3>{{ zone.title }} <span>({{zone.start}} → {{zone.end}})</span></h3>
23
24 <ul>
25   <li>Number of tracks: {{zone.stats.count}}{% if from_date %} (new: {{zone.stats.new_files}}, {{zone.stats.percent_new_files}}){% endif %}
26          (duration: {{zone.stats.total_duration}})
27   <ul>
28   <li>Instru: {{zone.stats.instru}} ({{zone.stats.instru_percentage}})</li>
29   <li>SABAM: {{zone.stats.sabam}} ({{zone.stats.sabam_percentage}})</li>
30   <li>CFWB: {{zone.stats.cfwb}} ({{zone.stats.cfwb_percentage}})
31           {% if zone.stats.quota_cfwb %}✅{% else %}❌{% endif %}
32   </li>
33   <li>French-speaking: {{zone.stats.french}} ({{zone.stats.french_percentage}}, % hors instrus)
34           {% if zone.stats.quota_french %}✅{% else %}❌{% endif %}
35   </li>
36   </ul></li>
37 </ul>
38
39 </div>
40 {% endfor %}
41 </div>
42
43 {% endblock %}