diff options
author | Matthew Lemon <y@yulqen.org> | 2024-02-12 04:50:44 +0000 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-02-12 04:50:44 +0000 |
commit | fbf0f6250dadf3fb3ba70b8b8f40b2c265b09939 (patch) | |
tree | 4b312e2d8e2e9dacaa4458dfce35a6c5ea699047 /ui/html/base.tmpl.html | |
parent | 7d131bea17205c314387700787286365cbd98d5a (diff) |
An Operations list page now renders data in table
The data is fetched from the database and uses html/template to render
the rows in a list.
A critical bug was not including the dot in {{ template "main" . }} in
the base template. THIS MEANT THAT NO DATA PASSED TO ExecuteTemplate
function rendered and took a long time to figure out.
Diffstat (limited to 'ui/html/base.tmpl.html')
-rw-r--r-- | ui/html/base.tmpl.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/html/base.tmpl.html b/ui/html/base.tmpl.html index 91bdbc2..58122a0 100644 --- a/ui/html/base.tmpl.html +++ b/ui/html/base.tmpl.html @@ -14,7 +14,7 @@ {{ template "nav" . }} </header> <main> - {{ template "main" }} + {{ template "main" . }} <!-- DONT FORGET THE DOT!!! --> </main> </body> </html> |