calebasse / calebasse / statistics / templates / statistics / detail.html @ b16a4439
1 |
{% extends "ressources/base.html" %} |
---|---|
2 |
{% load statistics_filters %} |
3 |
|
4 |
{% block header %} |
5 |
{{ block.super }} |
6 |
<span>Statistiques - {{ service_name }}</span> |
7 |
{% endblock %} |
8 |
|
9 |
{% block appbar %} |
10 |
<h2>Statistique {{ dn }}</h2> |
11 |
<a href="../..">Retourner aux statistiques</a> |
12 |
{% endblock %} |
13 |
|
14 |
{% block content %} |
15 |
{% if data_tables %} |
16 |
{% for data in data_tables %} |
17 |
<table class="basic"> |
18 |
<thead>
|
19 |
<tr>
|
20 |
{% for col in data.0 %} |
21 |
<th>{{ col }}</th> |
22 |
{% endfor %} |
23 |
</tr>
|
24 |
</thead>
|
25 |
<tbody>
|
26 |
{% for values in data.1 %} |
27 |
<tr>
|
28 |
{% for value in values %} |
29 |
{% if not value|is_list %} |
30 |
<td>{{ value }}</td> |
31 |
{% else %} |
32 |
<td>
|
33 |
<ul>
|
34 |
{% for val in value %} |
35 |
<li>{{ val }}</li> |
36 |
{% endfor %} |
37 |
</ul>
|
38 |
</td>
|
39 |
{% endif %} |
40 |
{% endfor %} |
41 |
</tr>
|
42 |
{% endfor %} |
43 |
</tbody>
|
44 |
</table>
|
45 |
{% endfor %} |
46 |
{% endif %} |
47 |
{% endblock %} |