Project

General

Profile

Download (1.38 KB) Statistics
| Branch: | Tag: | Revision:

calebasse / calebasse / statistics / templates / statistics / detail.html @ 1f4ae3b3

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_set %}
16
    {% for data_tables in data_tables_set %}
17
    <div class="statistic">
18
    {% for data in data_tables %}
19
    <table class="basic">
20
      <thead>
21
          <tr>
22
          {% for col in data.0 %}
23
          <th>{{ col }}</th>
24
          {% endfor %}
25
          </tr>
26
      </thead>
27
      <tbody>
28
        {% for values in data.1 %}
29
        <tr>
30
            {% for value in values %}
31
                {% if value|is_list %}
32
                <td class="width-limited">
33
                    <ul>
34
                        {% for val in value %}
35
                        <li>{{ val }}</li>
36
                        {% endfor %}
37
                    </ul>
38
                </td>
39
                {% elif value|is_dict %}
40
                <td class="width-limited {{ value.style }}">{{ value.data }}</td>
41
                {% else %}
42
                <td class="width-limited">{{ value }}</td>
43
                {% endif %}
44
            {% endfor %}
45
        </tr>
46
        {% endfor %}
47
      </tbody>
48
    </table><br/>
49
    {% endfor %}
50
    </div><br/><br/>
51
    {% endfor %}
52
    {% endif %}
53
{% endblock %}
(2-2/4)