{% extends "base.html" %} {% block messages %} {% if board.is_game_over %} {% with board.get_winner as winner %} {% if winner %} The winner is: {{ board.get_winner }} {% else %} Its a tie! {% endif %} {% endwith %} {% else %} {% if current_player == player %} Your turn! {% else %} Your opponents turn! {% endif %} {% endif %} {% endblock %} {% block content %} {% load custom_filters %}