matttrenary / rugby-ratings

Calculate ratings from rugby scores
2 stars 1 forks source link

Only highlight team's elo adjustment within team results #29

Open matttrenary opened 1 month ago

matttrenary commented 1 month ago

Within a team's results page, for each game, only highlight the elo adjustment for that team. Having only the red/green highlight for their adjustment will make it easy for the user to recognize a win or a loss.

To implement, we'll need to pass the team name through generate_teams to generate_from_df to generate_page, all in site_builder.py. Then we could either: a) Keep the same _results_table template and add logic to look for the team, or check that we didn't pass a team at all in order to keep the normal non-team-specific results page the same. b) Create a new _team_results_table template that looks for the team name, and keep the existing _results_table template the same.

grjanke commented 2 weeks ago

Love this issue!