package seasonsview import "git.haelnorr.com/h/oslstats/internal/db" import "git.haelnorr.com/h/oslstats/internal/permissions" import "git.haelnorr.com/h/oslstats/internal/contexts" import "git.haelnorr.com/h/oslstats/internal/view/baseview" import "fmt" import "sort" import "time" templ SeasonLeagueTeamDetailPage(twr *db.TeamWithRoster, fixtures []*db.Fixture, available []*db.Player, scheduleMap map[int]*db.FixtureSchedule, resultMap map[int]*db.FixtureResult, record *db.TeamRecord, playerStats []*db.AggregatedPlayerStats) { {{ team := twr.Team season := twr.Season league := twr.League }} @baseview.Layout(fmt.Sprintf("%s - %s - %s", team.Name, league.Name, season.Name)) {
No players on this roster yet.
if canManagePlayers {Click "Manage Players" to add players to this team.
}No results yet.
Match results will appear here once games are played.
No upcoming fixtures.
No stats yet.
Team statistics will appear here once games are played.
| Player | GP | SC | G | A | SV | SH | BL | PA |
|---|---|---|---|---|---|---|---|---|
| { ps.PlayerName } | { fmt.Sprint(ps.GamesPlayed) } | { fmt.Sprint(ps.Score) } | { fmt.Sprint(ps.Goals) } | { fmt.Sprint(ps.Assists) } | { fmt.Sprint(ps.Saves) } | { fmt.Sprint(ps.Shots) } | { fmt.Sprint(ps.Blocks) } | { fmt.Sprint(ps.Passes) } |
{ label }
{ value }