{% macro players(x, y) %} {{ stats.total_users }} Player{% if stats.total_users != 1 %}s{% endif %} {% endmacro %} {% macro teams(x, y) %} {{ stats.total_teams }} Team{% if stats.total_teams != 1 %}s{% endif %} {% endmacro %} {% macro challenges(x, y) %} {{ stats.total_challenges }} Challenge{% if stats.total_challenges != 1 %}s{% endif %} {% endmacro %} {% macro solves(x, y) %} {{ stats.total_solves }} Solve{% if stats.total_solves != 1 %}s{% endif %} {% endmacro %} {% macro ctftime_weight(x, y) %} {{ ctftime.weight }} CTFtime Weight {% endmacro %} {% macro teams_interested(x, y) %} {{ ctftime.teams_interested }} Team{% if stats.teams_interested != 1 %}s{% endif %} Interested {% endmacro %} {{ site.title }} {% set line_y=60 %} {{ site.title }} {{ location }} {% set line_y = line_y + 24 %} {% if site.organizer %} Hosted by {{ site.organizer }} {% set line_y = line_y + 20 %} {% endif %} {% if ctf_start_time %} {% if ctf_started %} Started {% else %} Starts {% endif %} {{ ctf_start_time }} {% set line_y = line_y + 18 %} {% endif %} {% if ctf_end_time %} {% if ctf_ended %} Ended {% else %} Ends {% endif %} {{ ctf_end_time }} {% set line_y = line_y + 18 %} {% endif %} {% if description %} {% set line_y = line_y + 6 %} {% for line in description %} {{ line }} {% set line_y = line_y + 18 %} {% endfor %} {% endif %} {% if ctf_ended %} {% set scoreboard_y = 210 %} {% set division_x = 50 %} {% for division in division_meta %} {% if division.places | length > 0 %} {{ division.name }} {% set place_y = scoreboard_y + 20 %} {% for place in division.places %} {{ place.name }} {{ place.score }} {% set place_y = place_y + 20 %} {% endfor %} {% set division_x = division_x + 250 %} {% endif %} {% endfor %} {% endif %} {% set cards_y = 300 %} {{ players(x="50", y=cards_y) }} {{ teams(x="150", y=cards_y) }} {{ challenges(x="250", y=cards_y) }} {% if ctf_started %} {{ solves(x="380", y=cards_y) }} {% if ctftime.weight %}{{ ctftime_weight(x="480", y=cards_y) }}{% endif %} {% else %} {% if ctftime %} {{ teams_interested(x="380", y=cards_y) }} {% if ctftime.weight %}{{ ctftime_weight(x="570", y=cards_y) }}{% endif %} {% endif %} {% endif %} {% set x=0 %} {% for category in stats.categories %} {{ category.name }} {% set x = x + category.num / stats.total_challenges %} {% endfor %}