{% macro showteam(x, y) %} {{ team.name }} Team {% endmacro %} {% macro solves(x, y) %} {{ num_solves }} Solve{% if num_solves != 1 %}s{% endif %} {% endmacro %} User {{ user.name }} in {{ site.title }} {{ location }} {% set line_y=60 %} {{ user.name }} {% set line_y = line_y + 24 %} {{ site.title }}{% if site.organizer %} hosted by {{ site.organizer }}{% endif %} {% set line_y = line_y + 20 %} {% 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 %} {% set cards_y = 300 %} {% if ctf_started %} {{ solves(x="50", y=cards_y) }} {{ showteam(x="150", y=cards_y) }} {% else %} {{ showteam(x="50", y=cards_y) }} {% endif %} {% if num_solves > 0 %} {% set x = 0 %} {% for category in categories %} {{ category.name }} {% set x = x + category.num / num_solves %} {% endfor %} {% else %} {% endif %}