summaryrefslogtreecommitdiff
path: root/src/templates/table.html
blob: 252b2f92f414d3f1bbbd732e061995fe318e4d52 (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>
            <nobr>{{ row[header] }}</nobr>
        </td>
        {% endfor %}
    </tr>
    {% endfor %}
    </tbody>
</table>