summaryrefslogtreecommitdiff
path: root/src/templates/table.html
diff options
context:
space:
mode:
authoruser <user@node5.net>2024-03-22 13:35:44 +0100
committeruser <user@node5.net>2024-03-22 13:35:44 +0100
commit3f1296895a96ce02a7e034c19cf941bc1d54fcbd (patch)
tree991251a87a5d976a67235f2e60be0ccd4d16dc18 /src/templates/table.html
initial commit, shows data
Diffstat (limited to 'src/templates/table.html')
-rw-r--r--src/templates/table.html20
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