{% extends "layout.html" %} {% import "card.html" as card %} {% import "icons.html" as icons %} {% block content %}

{{ t("account") }}

{% with link_start="" | replace("{}", user.id) %} {{ t("account-description", link_start=link_start, link_end="") | safe }} {% endwith %}

{% if discord %} {% call card.root() %} {% call card.header() %} {% call card.title() %} {% with minijinja_lift=lang %} {% endwith %} {{ t("account-discord-integration") }} {% endcall %} {% call card.description() %} {% with minijinja_lift=lang %} {% endwith %} {{ t("account-discord-integration-description") }} {% endcall %} {% endcall %} {% call card.content() %}

{% if user.discord_id %} {{ icons.check(class="size-4") }} {% else %} {{ icons.ellipsis(class="size-4") }} {% endif %}
{% if user.discord_id %} {{ t("account-discord-integration-link-discord") }} {% else %} {{ t("account-discord-integration-link-discord") }} {{ icons.external_link(class="size-6") }} {% endif %}

{{ t("account-discord-integration-link-discord-description") }}

{% if discord.in_server %} {{ icons.check(class="size-4") }} {% else %} {{ icons.ellipsis(class="size-4") }} {% endif %}
{% if discord.in_server %} {{ t("account-discord-integration-join-server") }} {% else %} {{ t("account-discord-integration-join-server") }} {{ icons.external_link(class="size-6") }} {% endif %}

{{ t("account-discord-integration-join-server-description") }}

{% endcall %} {% endcall %} {% endif %} {% call card.root() %} {% call card.header() %} {% call card.title() %} Divisions {% endcall %} {% call card.description() %} Join divisions to make your team eligible for different leaderboards {% endcall %} {% endcall %} {% call card.content() %}
Division Name
Joined
{% for division in divisions %}
{{ division.name }}
{{ icons.info(class="h-4 ml-2") }}
{% endfor %}
{% endcall %} {% endcall %} {% call card.root() %} {% call card.header() %} {% call card.title() %} Emails {% endcall %} {% call card.description() %} Manage connected emails to qualify for certain divisions {% endcall %} {% endcall %} {% call card.content() %} {% if emails | length > 0 %}
    {% for email in emails %}
  • {{ email.address }} {% if emails | length > 1 %} {% endif %}
  • {% endfor %}
{% endif %}
{{ icons.spinner(attrs='class="animate-spin"') }}
{% endcall %} {% endcall %} {% call card.root() %} {% call card.header() %} {% call card.title() %} Settings {% endcall %} {% call card.description() %} Change settings about your account {% endcall %} {% endcall %} {% call card.content() %}

Change name

Must be between 3 and 30 characters. May only be changed every 30 minutes.

{% endcall %} {% endcall %} {% include "account-cards.html" %}
{% call card.root() %} {% call card.header() %} {% call card.title() %} Solves {% endcall %} {% call card.description() %} Challenges you have solved {% endcall %} {% endcall %} {% call card.content() %} {% with x=lang %} {% endwith %} {% if team.solves | length > 0 %}
    {% for challenge_id, solve in team.solves | dictsort(by="value", reverse=true) %} {% if solve.user_id == user.id %} {% with challenge=challenges[challenge_id], solver=team.users[solve.user_id], category=categories[challenge.category_id] %}
  1. {{ category.name }} / {{ challenge.name }}  / {{ challenge.division_points[0].points }} points / {% with diff=timediff(solve.solved_at, now) %} {{ t("time-difference", years=diff.years, days=diff.days, hours=diff.hours, minutes=diff.minutes, seconds=diff.seconds) }} {%- endwith -%}
  2. {% endwith %} {% endif %} {% endfor %}
{% else %}

You have no solves yet.

{% endif %} {% endcall %} {% endcall %}
{% endblock %}