refactored view package

This commit is contained in:
2026-02-09 19:30:47 +11:00
parent 24733098b4
commit d01485d139
47 changed files with 653 additions and 490 deletions

View File

@@ -6,7 +6,7 @@ import (
"git.haelnorr.com/h/golib/hws"
"git.haelnorr.com/h/oslstats/internal/db"
"git.haelnorr.com/h/oslstats/internal/view/page"
seasonsview "git.haelnorr.com/h/oslstats/internal/view/seasonsview"
"github.com/pkg/errors"
"github.com/uptrace/bun"
)
@@ -31,7 +31,7 @@ func SeasonsPage(
}); !ok {
return
}
renderSafely(page.SeasonsPage(seasons), s, r, w)
renderSafely(seasonsview.ListPage(seasons), s, r, w)
})
}
@@ -55,6 +55,6 @@ func SeasonsList(
}); !ok {
return
}
renderSafely(page.SeasonsList(seasons), s, r, w)
renderSafely(seasonsview.SeasonsList(seasons), s, r, w)
})
}