summaryrefslogtreecommitdiff
path: root/src/templates/table.html
blob: 791c10e69f234a3b850c08dd5008d2d28098614e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<table class="table">
    <thead>
    <tr>
        {% for header in data[1] %}
        <th scope="col">{{ header }}</th>
        {% endfor %}
    </tr>
    </thead>
    <tbody>
    {% for row in data[0] %}
    <tr>
        {% for header in data[1] %}
        <td>
            {{ row[header] }}
        </td>
        {% endfor %}
    </tr>
    {% endfor %}
    </tbody>
</table>