{% macro players(x, y) %} {{ num_users }} Player{% if num_users != 1 %}s{% endif %} {% endmacro %} {% macro solves(x, y) %} {{ num_solves }} Solve{% if num_solves != 1 %}s{% endif %} {% endmacro %} {% macro writeups(x, y) %} {{ num_writeups }} Writeup{% if num_writeups != 1 %}s{% endif %} {% endmacro %} Team {{ team.name }} in {{ site.title }} {{ location }} {% set line_y=60 %} {{ team.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 user_y = 210 %} Players {% set user_y = user_y + 20 %} {% for _, user in team.users | items %} {% if user.is_team_owner %} {% endif %} {{ user.name }} {% set user_y = user_y + 18 %} {% endfor %} {% set division_x = 240 %} {% for division in divisions %} {% if standings[division.id] %} {{- division.name -}} {{ standings[division.id].points }} points {%- if standings[division.id].rank == 1 -%} 1st {%- elif standings[division.id].rank == 2 -%} 2nd {%- elif standings[division.id].rank == 3 -%} 3rd {%- else -%} {{ standings[division.id].rank }}th {%- endif %} place {% set division_x = division_x + 170 %} {% endif %} {% endfor %} {% set info_offset = 50 %} {% if team.users | length > 4 %} {% set info_offset = 240 %} {% endif %} {% set cards_y = 300 %} {{ players(x=info_offset, y=cards_y) }} {% if ctf_started %} {{ solves(x=info_offset + 100, y=cards_y) }} {% endif %} {% if ctf_ended and num_writeups > 0 %} {{ writeups(x=info_offset + 200, 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 %}