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

User {{ public_user.name }}

On team {{ public_team.name }}. {% if user.id == public_user.id %} This is your profile, go to your account view. {% endif %}

{% call card.root() %} {% call card.header() %} {% call card.title() %} About {% endcall %} {% call card.description() %} User profile {% endcall %} {% endcall %} {% call card.content() %} {% endcall %} {% endcall %}
{% call card.root() %} {% call card.header() %} {% call card.title() %} Solves {% endcall %} {% call card.description() %} Challenges this player has solved {% endcall %} {% endcall %} {% call card.content() %} {% with x=lang %} {% endwith %} {% if public_team.solves | length > 0 %}
    {% for challenge_id, solve in public_team.solves | dictsort(by="value", reverse=true) %} {% if solve.user_id == public_user.id %} {% with challenge=challenges[challenge_id], solver=public_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 %}

This player has no solves yet.

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