dashboard.templ 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. package views
  2. import (
  3. "fmt"
  4. "code.osinet.fr/fgm/jamtrack/internal/query"
  5. )
  6. // Dashboard renders the practice-list ranking table.
  7. templ Dashboard(ranks []query.SongRank, locationID string) {
  8. @Layout("Practice List") {
  9. <div class="level">
  10. <div class="level-left">
  11. <h1 class="title">Practice List</h1>
  12. </div>
  13. <div class="level-right">
  14. <a class="button is-primary" href="/jams/new">+ New Jam</a>
  15. </div>
  16. </div>
  17. if len(ranks) == 0 {
  18. <p class="has-text-grey">No songs logged yet. <a href="/jams/new">Add a jam</a> to get started.</p>
  19. } else {
  20. <table class="table is-fullwidth is-striped is-hoverable">
  21. <thead>
  22. <tr>
  23. <th>Artist</th>
  24. <th>Title</th>
  25. <th class="has-text-right">Played</th>
  26. <th class="has-text-right">Proposed</th>
  27. </tr>
  28. </thead>
  29. <tbody>
  30. for _, r := range ranks {
  31. <tr>
  32. <td>{ r.Artist }</td>
  33. <td>{ r.Title }</td>
  34. <td class="has-text-right">{ fmt.Sprint(r.PlayedCount) }</td>
  35. <td class="has-text-right">{ fmt.Sprint(r.ProposedCount) }</td>
  36. </tr>
  37. }
  38. </tbody>
  39. </table>
  40. }
  41. }
  42. }
PANIC: session(release): write data/sessions/d/a/dadbe2f5e1c7b682: no space left on device

PANIC

session(release): write data/sessions/d/a/dadbe2f5e1c7b682: 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)