diff options
| author | user <user@node5.net> | 2024-03-22 13:35:44 +0100 |
|---|---|---|
| committer | user <user@node5.net> | 2024-03-22 13:35:44 +0100 |
| commit | 3f1296895a96ce02a7e034c19cf941bc1d54fcbd (patch) | |
| tree | 991251a87a5d976a67235f2e60be0ccd4d16dc18 /src/templates/table.html | |
initial commit, shows data
Diffstat (limited to 'src/templates/table.html')
| -rw-r--r-- | src/templates/table.html | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/templates/table.html b/src/templates/table.html new file mode 100644 index 0000000..791c10e --- /dev/null +++ b/src/templates/table.html @@ -0,0 +1,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>
\ No newline at end of file |
