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

Team {{ public_team.name }}

Public team profile. {% if user.team_id == public_team.id %} You are on the team, go to your team view. {% endif %}

{% call card.root() %} {% call card.header() %} {% call card.title() %} Members {% endcall %} {% call card.description() %} Players on the team {% endcall %} {% endcall %} {% call card.content() %}
    {% for player_id, player in public_team.users | items %}
  • {{ player.name }}
    {% if player.is_team_owner %}
    {{ icons.crown() }}
    {% endif %} {% if user.id == player_id %}
    (You)
    {% endif %}
  • {% endfor %}
{% endcall %} {% endcall %} {% call card.root() %} {% call card.header() %} {% call card.title() %} Standing {% endcall %} {% call card.description() %} The team's standing in the competition {% endcall %} {% endcall %} {% call card.content() %} {% with x=divisions, y=standings %} {% endwith %} {% include "standing-table.html" %} {% endcall %} {% endcall %}
{% call card.root() %} {% call card.header() %} {% call card.title() %} Solves {% endcall %} {% call card.description() %} Challenges the team 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) %} {% 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 -%}
    {{ solver.name }}
  2. {% endwith %} {% endfor %}
{% else %}

This team has no solves yet.

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