{% extends 'base.html' %} {% block app_content %}

My games:

{% if current_user.games %}
{% for game in current_user.games %} {% endfor %}
Game Name Current State Start Time End Time My Role
{{ game.name }} {{ game.state.name.title() }} {{ game.start_time }} {{ game.end_time }} {% for gameplayer in current_user.user_games if gameplayer.game == game %} {{ gameplayer.role.name.title() }} {% endfor %}
{% else %} {% endif %} {% endblock %}