{% extends "webapp/base.html" %} {% from "webapp/_game_logo.html" import glogo %} {% block title %}{{ t('results_history') }} โ€” {{ t('brand') }}{% endblock %} {% block content %}

๐Ÿ—‚๏ธ {{ t('results_history') }}

{{ t('results_history_desc') | default('Every finished tournament, every champion, every prize โ€” on the record.') }}

{{ total_tournaments }}
{{ t('finished_tournaments') | default('Finished Tournaments') }}
${{ '%.0f' | format(total_prize) }}
{{ t('total_prize_distributed') | default('Total Prize Distributed') }}
{{ hall | length }}
{{ t('champions') | default('Champions') }}
๐ŸŒ {{ t('all_games') | default('ALL GAMES') }} {% for g in games %} {{ g.name }} {% endfor %}
{% if results %} {% for r in results %} {% set fm = r.match %}
{{ glogo(fm.game, 'xs') }} {{ fm.title }} {% if fm.game %}{{ fm.game.name }}{% endif %}
{% if fm.starts_at %}๐Ÿ“… {{ fm.starts_at.strftime('%Y-%m-%d') }}{% endif %} {% if fm.prize_pool > 0 %}${{ fm.prize_pool }}{% endif %} {{ t('view_results') | default('VIEW RESULTS') }} โ†’
{% for w in r.winners %}
{% if loop.index0 == 0 %}๐Ÿฅ‡{% elif loop.index0 == 1 %}๐Ÿฅˆ{% else %}๐Ÿฅ‰{% endif %} {{ (w.user.display_name[0]|upper) if w.user and w.user.display_name else '?' }} {% if w.user and w.user.numeric_id is not none %} {{ w.user.display_name }} {% else %} Player #{{ w.user_id if w.user else '?' }} {% endif %} ${{ '%.2f' | format(w.prize) }}
{% endfor %}
{% endfor %} {% else %}
๐Ÿ—‚๏ธ

{{ t('no_results_yet') | default('No results yet') }}

{{ t('no_results_desc') | default('Finished tournaments with announced winners will appear here.') }}

{% endif %}
{% endblock %}