package seasonsview import "git.haelnorr.com/h/oslstats/internal/db" import "git.haelnorr.com/h/oslstats/internal/contexts" import "git.haelnorr.com/h/oslstats/internal/permissions" import "fmt" templ SeasonLeagueFinalsPage( season *db.Season, league *db.League, bracket *db.PlayoffBracket, topGoals []*db.LeagueTopGoalScorer, topAssists []*db.LeagueTopAssister, topSaves []*db.LeagueTopSaver, allStats []*db.LeaguePlayerStats, ) { @SeasonLeagueLayout("finals", season, league) { @SeasonLeagueFinals(season, league, bracket, topGoals, topAssists, topSaves, allStats) } } templ SeasonLeagueFinals( season *db.Season, league *db.League, bracket *db.PlayoffBracket, topGoals []*db.LeagueTopGoalScorer, topAssists []*db.LeagueTopAssister, topSaves []*db.LeagueTopSaver, allStats []*db.LeaguePlayerStats, ) { {{ permCache := contexts.Permissions(ctx) canManagePlayoffs := permCache != nil && permCache.HasPermission(permissions.PlayoffsManage) hasStats := len(topGoals) > 0 || len(topAssists) > 0 || len(topSaves) > 0 || len(allStats) > 0 }}
No Finals Configured
Set up the playoff bracket for this league.
No finals configured for this league.