{% import "icons.html" as icons %} {{ category.name }} / {{ challenge.name }} {%- for division_points in challenge.division_points -%} {{ divisions[division_points.division_id].name }} {{ t("solves", solves=division_points.solves) }} {{ t("points", points=division_points.points) }} {%- endfor -%} {{ t("solves-points", solves=challenge.division_points[0].solves, points=challenge.division_points[0].points) }} {{ challenge.description | safe }} {% with solve=team.solves[challenge.id] %} {% if not solve %} Submit Flag {% else %} {% if not user_writeups[challenge.id] %} {{ icons.spinner(attrs='class="animate-spin"') }} Submit Writeup {% else %} Rescind writeup {% endif %} {% if team.writeups[challenge.id] %} Team's writeups: {% for writeup in team.writeups[challenge.id] %} {{ writeup.url }} by {{ team.users[writeup.user_id].name }} {% endfor %} {% endif %} {% endif %} {% endwith %} {% if challenge.attachments | length > 0 %} {% for attachment in challenge.attachments %} {{ icons.attachment() }} {{ attachment.name }} {% endfor %} {% endif %}