{% extends "base.html" %} {% block title %}{{ game.away.name }} vs {{ game.home.name }} Box Score{% endblock %} {% block content %} {% if game.status == "NS" %}

{{ game.away.name }} at {{ game.home.name }}

{% else %}

{{ game.away.name }} {{ game.away.score }}, {{ game.home.name }} {{ game.home.score }}

{% endif %}

{{ "Final" if game.status in ("FT", "AOT") else ("Scheduled" if game.status == "NS" else game.status) }} · {{ game.start|et_day }}, {{ game.start|et }} ET · {{ game.venue }}

{% if game.status == "NS" %}

The box score appears here when the game starts.

{% else %}
{% for p in game.home.periods %}{% endfor %} {% for side in (game.away, game.home) %} {% for p in side.periods %}{% endfor %} {% endfor %}
Team{{ loop.index if loop.index <= 4 else "OT" }}T
{{ side.abbreviation }}{{ p }}{{ side.score }}
{% for side in ("away", "home") %}

{{ game[side].name }}

{% for row in box[side] if not row.dnp %} {% endfor %}
PlayerMinPtsRebAstFG3PT+/-
{{ row.player.name }} {{ row.minutes }}{{ row.pts }}{{ row.reb }}{{ row.ast }} {{ row.fgm }}-{{ row.fga }}{{ row.tpm }}-{{ row.tpa }}{{ row.plus_minus }}
{% endfor %} {% if stats and stats.home %}

Team stats

{% for key, label in [("fg_pct", "Field goal %"), ("tp_pct", "3-point %"), ("reb", "Rebounds"), ("ast", "Assists"), ("tov", "Turnovers"), ("pts_paint", "Points in the paint")] %} {% endfor %}
{{ game.away.abbreviation }}{{ game.home.abbreviation }}
{{ label }}{{ stats.away[key] }}{{ stats.home[key] }}
{% endif %} {% endif %} {% endblock %}