{% extends "base.html" %} {% block title %}Session Results โ€” AI GameDay{% endblock %} {% block extra_css %} {% endblock %} {% block content %}

๐Ÿ“‹ After-Action Report

{{ session.scenario_slug.replace('_',' ').title() }} โฌ‡ Download AAR โ† Hub
{% if leaderboard %}
{% set top3 = leaderboard[:3] %} {% set max_pts = top3[0].total_score if top3 else 1 %} {# Reorder: 2nd | 1st | 3rd #} {% for idx in [1, 0, 2] %} {% if idx < top3|length %} {% set row = top3[idx] %} {% set heights = [110, 150, 80] %} {% set colors = ['#c0c0c0', 'linear-gradient(180deg,#FFB800,#FF6B35)', '#cd7f32'] %}
{{ '๐Ÿฅ‡' if idx==0 else ('๐Ÿฅˆ' if idx==1 else '๐Ÿฅ‰') }}
{{ row.team_name }}
{{ row.total_score }} pts
{% endif %} {% endfor %}
{% endif %}
Inject Replay
{% for inj in injects %} {% set is_aadc = inj.get('is_aadc', false) %}

{{ inj.title }} {% if is_aadc %}AADC{% endif %} ({{ inj.state }})

{% if is_aadc %}{% else %}{% endif %} {% set inj_scores = inject_scores.get(inj.inject_id, {}) %} {% for team_id, team in teams.items() %} {% set s = inj_scores.get(team_id, {}) %} {% if is_aadc %} {% else %} {% endif %} {% endfor %}
Team ReceiptsAADC ScoreJudge ScoreSpeed Bonus Total
{{ team.team_name }} {{ s.get('receipt_pts', 'โ€”') }}{{ s.get('aadc_score', 'โ€”') }}{% if s.get('aadc_score') is not none and s.get('aadc_score') != 'โ€”' %}/100{% endif %}{{ s.get('judge_pts', 'โ€”') }}{{ s.get('time_bonus_pts', 'โ€”') }} {{ s.get('total_pts', 'โ€”') }}
{% endfor %}
Full AAR
{{ aar_md }}
Category Ribbons
{% for ribbon_id, winner in ribbons.items() %} {% set defn = ribbon_defs[ribbon_id] %}
{{ defn.icon }}
{{ defn.label }} {% if winner %}
{{ winner.team_name }}
{% else %}
โ€”
{% endif %}
{% endfor %}
Final Rankings
{% for row in leaderboard %}
{{ '๐Ÿฅ‡' if row.rank==1 else ('๐Ÿฅˆ' if row.rank==2 else ('๐Ÿฅ‰' if row.rank==3 else row.rank)) }}
{{ row.team_name }}
Receipts: {{ row.receipt_pts }} ยท Judge: {{ row.judge_pts }}
{{ row.total_score }}
{% endfor %}
AI Usage by Team
{% for team_id, stats in ai_stats.items() %}
{{ teams.get(team_id, {}).get('team_name', 'Team') }} {{ stats.receipt_total }} receipts
{{ stats.tools|join(', ') or 'No tools logged' }}
{% endfor %}
{% endblock %}