User login & logout
This commit is contained in:
@ -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>
|
||||
|
Reference in New Issue
Block a user