{% extends "base.html" %} {% block title %}Schedule — Solitaire Hockey{% endblock %} {% block content %}

Schedule

Import CSV
{% if next_game %}
Next Unplayed Game
{% set ak = next_game.away_tricode + '_' + next_game.season %} {% set hk = next_game.home_tricode + '_' + next_game.season %}
Game {{ next_game.game_number }} • {{ next_game.game_date }} • {{ team_names.get(ak, next_game.away_tricode) }} @ {{ team_names.get(hk, next_game.home_tricode) }} Play this game
{% endif %} {% if not current_season %}

Select a season to view the schedule.

{% elif not games %}

No schedule imported for this season yet. Import a CSV.

{% else %}
{% for g in games %} {% set ak = g.away_tricode + '_' + g.season %} {% set hk = g.home_tricode + '_' + g.season %} {% set played = g.game_id is not none %} {% endfor %}
# Date Away Home Result
{{ g.game_number }} {{ g.game_date }} {{ team_names.get(ak, g.away_tricode) }} {{ team_names.get(hk, g.home_tricode) }} {% if played %} Played {% else %} {% endif %} {% if not played %} Play {% endif %}
{% endif %}
{% endblock %} {% block scripts %} {% endblock %}