layout_templ.go 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. // Code generated by templ - DO NOT EDIT.
  2. // templ: version: v0.3.1020
  3. package views
  4. //lint:file-ignore SA4006 This context is only used if a nested component is present.
  5. import "github.com/a-h/templ"
  6. import templruntime "github.com/a-h/templ/runtime"
  7. // Layout is the base HTML layout used by all authenticated pages.
  8. func Layout(title string) templ.Component {
  9. return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) {
  10. templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context
  11. if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil {
  12. return templ_7745c5c3_CtxErr
  13. }
  14. templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W)
  15. if !templ_7745c5c3_IsBuffer {
  16. defer func() {
  17. templ_7745c5c3_BufErr := templruntime.ReleaseBuffer(templ_7745c5c3_Buffer)
  18. if templ_7745c5c3_Err == nil {
  19. templ_7745c5c3_Err = templ_7745c5c3_BufErr
  20. }
  21. }()
  22. }
  23. ctx = templ.InitializeContext(ctx)
  24. templ_7745c5c3_Var1 := templ.GetChildren(ctx)
  25. if templ_7745c5c3_Var1 == nil {
  26. templ_7745c5c3_Var1 = templ.NopComponent
  27. }
  28. ctx = templ.ClearChildren(ctx)
  29. templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 1, "<!doctype html><html lang=\"en\"><head><meta charset=\"UTF-8\"><meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"><title>")
  30. if templ_7745c5c3_Err != nil {
  31. return templ_7745c5c3_Err
  32. }
  33. var templ_7745c5c3_Var2 string
  34. templ_7745c5c3_Var2, templ_7745c5c3_Err = templ.JoinStringErrs(title)
  35. if templ_7745c5c3_Err != nil {
  36. return templ.Error{Err: templ_7745c5c3_Err, FileName: `views/layout.templ`, Line: 10, Col: 17}
  37. }
  38. _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var2))
  39. if templ_7745c5c3_Err != nil {
  40. return templ_7745c5c3_Err
  41. }
  42. templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 2, " — JamTrack</title><link rel=\"stylesheet\" href=\"/static/bulma.min.css\"><script src=\"/static/htmx.min.js\"></script></head><body><nav class=\"navbar is-dark\" role=\"navigation\"><div class=\"navbar-brand\"><a class=\"navbar-item has-text-weight-bold\" href=\"/\">JamTrack</a></div><div class=\"navbar-menu\"><div class=\"navbar-end\"><a class=\"navbar-item\" href=\"/jams\">Jams</a> <a class=\"navbar-item\" href=\"/locations\">Locations</a> <a class=\"navbar-item\" href=\"/logout\">Logout</a></div></div></nav><main class=\"container mt-5\">")
  43. if templ_7745c5c3_Err != nil {
  44. return templ_7745c5c3_Err
  45. }
  46. templ_7745c5c3_Err = templ_7745c5c3_Var1.Render(ctx, templ_7745c5c3_Buffer)
  47. if templ_7745c5c3_Err != nil {
  48. return templ_7745c5c3_Err
  49. }
  50. templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 3, "</main></body></html>")
  51. if templ_7745c5c3_Err != nil {
  52. return templ_7745c5c3_Err
  53. }
  54. return nil
  55. })
  56. }
  57. var _ = templruntime.GeneratedTemplate
PANIC: session(release): write data/sessions/2/e/2e8bf64dca785dc7: no space left on device

PANIC

session(release): write data/sessions/2/e/2e8bf64dca785dc7: no space left on device
/my/cache/.heroku/go/go-path/pkg/mod/github.com/go-macaron/session@v1.0.3/session.go:204 (0xb13e07)
/my/cache/.heroku/go/go-path/pkg/mod/gopkg.in/macaron.v1@v1.5.1/context.go:80 (0x967b75)
/my/cache/.heroku/go/go-path/pkg/mod/github.com/go-macaron/inject@v0.0.0-20200308113650-138e5925c53b/inject.go:157 (0x9512ee)
/my/cache/.heroku/go/go-path/pkg/mod/github.com/go-macaron/inject@v0.0.0-20200308113650-138e5925c53b/inject.go:135 (0x951205)
/my/cache/.heroku/go/go-path/pkg/mod/gopkg.in/macaron.v1@v1.5.1/context.go:124 (0x967cc4)
/my/cache/.heroku/go/go-path/pkg/mod/gopkg.in/macaron.v1@v1.5.1/context.go:114 (0x967bf6)
/my/cache/.heroku/go/go-path/pkg/mod/gopkg.in/macaron.v1@v1.5.1/recovery.go:161 (0x15baec4)
/my/cache/.heroku/go/go-path/pkg/mod/gopkg.in/macaron.v1@v1.5.1/logger.go:40 (0x96b257)
/my/cache/.heroku/go/go-path/pkg/mod/github.com/go-macaron/inject@v0.0.0-20200308113650-138e5925c53b/inject.go:157 (0x9512ee)
/my/cache/.heroku/go/go-path/pkg/mod/github.com/go-macaron/inject@v0.0.0-20200308113650-138e5925c53b/inject.go:135 (0x951205)
/my/cache/.heroku/go/go-path/pkg/mod/gopkg.in/macaron.v1@v1.5.1/context.go:124 (0x967cc4)
/my/cache/.heroku/go/go-path/pkg/mod/gopkg.in/macaron.v1@v1.5.1/router.go:187 (0x972959)
/my/cache/.heroku/go/go-path/pkg/mod/gopkg.in/macaron.v1@v1.5.1/router.go:304 (0x973a01)
/my/cache/.heroku/go/go-path/pkg/mod/gopkg.in/macaron.v1@v1.5.1/macaron.go:218 (0x96c572)
/my/cache/.heroku/go/go1.26.3/go/src/net/http/server.go:3311 (0x85a5cd)
/my/cache/.heroku/go/go1.26.3/go/src/net/http/server.go:2073 (0x837f6f)
/my/cache/.heroku/go/go1.26.3/go/src/runtime/asm_amd64.s:1771 (0x493380)