{% extends "site_base.html" %} {% load bootstrap_tags %} {% load i18n %} {% block head_title %}{{ team.name }}{% endblock %} {% block body_class %}team{% endblock %} {% block page_title %}{{ team.name }}{% endblock %} {% block page_content %}
{% if state %}

{% blocktrans with name=team.name %}Your status is {{ state }} for {{ name }}.{% endblocktrans %}

{% endif %} {% if can_join %}
{% csrf_token %}
{% endif %} {% if can_leave %}
{% csrf_token %}
{% endif %} {% if can_apply %}
{% csrf_token %}
{% endif %} {% if team.description %}

{{ team.description }}

{% endif %} {% if state == "invited" %}

{% trans "You have been invited to join this team. Click join to the right to accept." %}

{% endif %} {% if user.is_staff or state == "manager" %} {% if team.managers %}

{% trans "Managers" %}

{% for membership in team.managers %} {% endfor %}
{{ membership.user.email }}{% if user == membership.user %} {% trans "you" %}{% endif %}
{% csrf_token %}
{% endif %} {% if team.members %}

{% trans "Team Members" %}

{% for membership in team.members %} {% endfor %}
{{ membership.user.email }}{% if user == membership.user %} {% trans "you" %}{% endif %}
{% csrf_token %}
{% endif %} {% if team.applicants and team.access == "application" %}

{% trans "Applicants" %}

{% for membership in team.applicants %} {% endfor %}
{{ membership.user.email }}
{% csrf_token %}
{% csrf_token %}
{% endif %} {% if team.invitees %}

{% trans "Invitees" %}

{% for membership in team.invitees %} {% endfor %}
{{ membership.user.email }}
{% endif %} {% if invite_form %}
{% csrf_token %} {% trans "Invite User to Team" %} {{ invite_form|as_bootstrap }}
{% endif %} {% endif %}
{% endblock %}