summaryrefslogtreecommitdiff
path: root/view/main.templ
diff options
context:
space:
mode:
authorSteven Le Rouzic <steven.lerouzic@gmail.com>2024-04-15 23:17:09 +0200
committerSteven Le Rouzic <steven.lerouzic@gmail.com>2024-04-15 23:17:09 +0200
commit3d507d36ea2c7955d98a16b85cb7bc02c8923caa (patch)
tree82a26595e2c3fc37de7c7b84aecdcb38635ebfeb /view/main.templ
parent6ceda23af460ddd4f79b476248a4244e60932926 (diff)
User login & logout
Diffstat (limited to 'view/main.templ')
-rw-r--r--view/main.templ7
1 files changed, 6 insertions, 1 deletions
diff --git a/view/main.templ b/view/main.templ
index 64a365c..06cb872 100644
--- a/view/main.templ
+++ b/view/main.templ
@@ -1,6 +1,10 @@
package view
-templ Main(contents templ.Component) {
+import (
+ "stevenlr.com/timer/model"
+)
+
+templ Main(contents templ.Component, currentUser *model.User) {
<!DOCTYPE html>
<html>
<head>
@@ -11,6 +15,7 @@ templ Main(contents templ.Component) {
<script src="/static/response-targets.js"></script>
</head>
<body hx-boost="true" hx-ext="response-targets">
+ @LoginForm(currentUser)
@contents
</body>
</html>