{% extends "base.html" %} {% block title %}{{game_name}} - {{super()}}{% endblock %} {% block body_class %}game{% endblock %} {% block content %}

{{game_name}}

Toggle all lines
{# FIXME: use a tuple with named parts instead of list indices #} {% for player in ratings %} {% if players[player[0]] and players[player[0]]["displayName"] %} {% set name = players[player[0]]["displayName"] %} {% else %} {% set name = player[0] %} {% endif %} {% if players[player[0]] and players[player[0]]["image"] %} {% set image_path = "../player/" + players[player[0]]["name"] %} {% set image_url = image_path + "/" + players[player[0]]["image"] %} {% endif %} {% endfor %}
Position Name Number of games Rating Change
{{loop.index}} {% if image_url %} {% endif %} {{name}} {{player[1]}} {{player[2]|int}} {{player[3]|int}}
{% endblock %}