package seasonsview import "git.haelnorr.com/h/oslstats/internal/db" import "git.haelnorr.com/h/oslstats/internal/view/baseview" import "git.haelnorr.com/h/oslstats/internal/view/component/links" import "fmt" templ FixtureReviewResultPage( fixture *db.Fixture, result *db.FixtureResult, unmappedPlayers []string, unnominatedFreeAgents []FreeAgentWarning, ) { {{ backURL := fmt.Sprintf("/fixtures/%d", fixture.ID) }} @baseview.Layout(fmt.Sprintf("Review Result — %s vs %s", fixture.HomeTeam.Name, fixture.AwayTeam.Name)) {
@links.TeamNameLinkInSeason(fixture.HomeTeam, fixture.Season, fixture.League) vs @links.TeamNameLinkInSeason(fixture.AwayTeam, fixture.Season, fixture.League) Round { fmt.Sprint(fixture.Round) }
{ *result.TamperingReason }
This does not block finalization but should be reviewed carefully.
The following free agents have nomination issues that should be reviewed before finalizing.
The following players could not be matched to registered players. They may be free agents or have unregistered Slapshot IDs.
@links.TeamNameLinkInSeason(fixture.HomeTeam, fixture.Season, fixture.League)
{ fmt.Sprint(result.HomeScore) }
@links.TeamNameLinkInSeason(fixture.AwayTeam, fixture.Season, fixture.League)
{ fmt.Sprint(result.AwayScore) }
| Player | PP | G | A | SV | SH | BL | PA | SC |
|---|---|---|---|---|---|---|---|---|
| if ps.PlayerID != nil { @links.PlayerLinkFromStats(*ps.PlayerID, ps.Username) } else { { ps.Username } ? } if ps.Stats.IsFreeAgent { FREE AGENT } | { intPtrStr(ps.Stats.PeriodsPlayed) } | { intPtrStr(ps.Stats.Goals) } | { intPtrStr(ps.Stats.Assists) } | { intPtrStr(ps.Stats.Saves) } | { intPtrStr(ps.Stats.Shots) } | { intPtrStr(ps.Stats.Blocks) } | { intPtrStr(ps.Stats.Passes) } | { intPtrStr(ps.Stats.Score) } |
| No player stats recorded | ||||||||