From baa15f03fae29e4c60b7b7dfaa53ef56895ff09d Mon Sep 17 00:00:00 2001 From: Haelnorr Date: Fri, 6 Mar 2026 18:29:23 +1100 Subject: [PATCH] added ot stats to team view --- internal/embedfs/web/css/output.css | 7 +++++-- .../view/seasonsview/season_league_team_detail.templ | 10 ++++++---- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/internal/embedfs/web/css/output.css b/internal/embedfs/web/css/output.css index be3d0b6..e04cc37 100644 --- a/internal/embedfs/web/css/output.css +++ b/internal/embedfs/web/css/output.css @@ -672,6 +672,9 @@ .grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } + .grid-cols-4 { + grid-template-columns: repeat(4, minmax(0, 1fr)); + } .grid-cols-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); } @@ -2174,9 +2177,9 @@ grid-template-columns: repeat(3, minmax(0, 1fr)); } } - .lg\:grid-cols-6 { + .lg\:grid-cols-8 { @media (width >= 64rem) { - grid-template-columns: repeat(6, minmax(0, 1fr)); + grid-template-columns: repeat(8, minmax(0, 1fr)); } } .lg\:items-end { diff --git a/internal/view/seasonsview/season_league_team_detail.templ b/internal/view/seasonsview/season_league_team_detail.templ index 0022edd..83a0b84 100644 --- a/internal/view/seasonsview/season_league_team_detail.templ +++ b/internal/view/seasonsview/season_league_team_detail.templ @@ -599,13 +599,15 @@ templ teamStatsSection(record *db.TeamRecord, playerStats []*db.AggregatedPlayer } else {
-
+
@statCell("Played", fmt.Sprint(record.Played), "") - @statCell("Record", fmt.Sprintf("%d-%d-%d", record.Wins, record.Losses, record.Draws), "") - @statCell("Wins", fmt.Sprint(record.Wins), "text-green") - @statCell("Losses", fmt.Sprint(record.Losses), "text-red") + @statCell("W", fmt.Sprint(record.Wins), "text-green") + @statCell("OTW", fmt.Sprint(record.OvertimeWins), "text-teal") + @statCell("OTL", fmt.Sprint(record.OvertimeLosses), "text-peach") + @statCell("L", fmt.Sprint(record.Losses), "text-red") @statCell("GF", fmt.Sprint(record.GoalsFor), "") @statCell("GA", fmt.Sprint(record.GoalsAgainst), "") + @statCell("PTS", fmt.Sprint(record.Points), "text-blue")