diff options
Diffstat (limited to 'view/main.templ')
-rw-r--r-- | view/main.templ | 7 |
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>
|