{% import "components/user.html" as user with context %} {% extends "layout/basic.html" %} {% block content %}

{{ _('Team Participation') }}

{% if invites.length %}
{{ _('You have {0} pending team invite(s)').format(invites.length) }}
    {% for v in invites %}
  • {{ v.displayName }} (ID {{ v._id }})
  • {% endfor %}
{% endif %} {% if not mine.length and not invites.length %} {{ nothing.render('You are not in any team yet. Create one from the panel on the right, or ask a teammate to invite you by your username.') }} {% endif %} {% for v in mine %}

{{ v.displayName }}

(ID {{ v._id }})
{{ v.members.length }}

{{ _('Members') }}

    {% for m in v.members %}
  • {{ user.render_inline(udict[m], badge=false) }}
  • {% endfor %}
{% if v.invite and v.invite.length %}

{{ _('Pending Invites') }}

    {% for uid in v.invite %}
  • {{ user.render_inline(udict[uid], badge=false) }}
  • {% endfor %}
{% endif %}
{% endfor %}

{{ _('Create a Team') }}

{{ _('How It Works') }}

{{ _('Teams let multiple users participate in a contest together, sharing one set of submissions.') }}

{{ _('Create a team, invite teammates by their username, then choose "Team Participation" when attending an allow-team contest.') }}

{% endblock %}