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 "git.haelnorr.com/h/oslstats/internal/view/component/links" 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, position int, totalTeams int) { {{ 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 games played yet.
Position
of { fmt.Sprint(totalTeams) } teams
Points
{ fmt.Sprint(record.Points) }
No player stats yet.
Player statistics will appear here once games are played.
| Player | GP | PP | SC | G | A | SV | SH | BL | PA |
|---|---|---|---|---|---|---|---|---|---|
| @links.PlayerLinkFromStats(ps.PlayerID, ps.PlayerName) | { fmt.Sprint(ps.GamesPlayed) } | { fmt.Sprint(ps.PeriodsPlayed) } | { 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 }