package layout import ( "fmt" "time" "github.com/gin-gonic/gin" "github.com/seaweedfs/seaweedfs/weed/util/version" ) templ Layout(c *gin.Context, content templ.Component) { {{ username := c.GetString("username") if username == "" { username = "admin" } }} SeaweedFS Admin
@content
} templ LoginForm(c *gin.Context, title string, errorMessage string) { {title} - Login

{title}

Please sign in to continue

if errorMessage != "" { }
}