{% extends "projects/project_menu.html" %} {% load i18n %} {% load pagination_tags %} {% load txcommontags %} {% load permissions %} {% load txpermissions %} {% block extra_head %} {% endblock %} {% block title %}{{ block.super }} | {{ project.name }} | {% trans "Translation Teams" %}{% endblock %} {% block breadcrumb %}{{ block.super }} » {{ project.name }}{% endblock %} {% block content_main %} {% get_permission "project_perm.maintain" for request.user and project as "is_maintainer" %}

{% trans "Translation Teams" %}

{% if perms.projects.change_team or is_maintainer %} {% endif %}
{% with project.teamrequest_set.all|dictsort:"language.name" as teamrequests %} {% if teamrequests %} {% autopaginate teamrequests 20 %}

{% trans "List of team requests:" %}

    {% for teamrequest in teamrequests %}
  • {{ teamrequest.language.name }} - Requester: {{ teamrequest.user.username }} {% if is_maintainer %}
    {% endif %}
  • {% endfor %}
{% endif %} {% endwith %} {% with project.team_set.all|dictsort:"language.name" as teams %} {% if teams %} {% autopaginate teams 20 %}

{% trans "List of available teams:" %}

    {% for team in teams %}
  • {{ team.language.name }} - {% blocktrans count team.coordinators.all|length as counter %}Coordinator:{% plural %}Coordinators:{% endblocktrans %} {% for c in team.coordinators.all %} {{c}} {% if not forloop.last %},{% endif %} {% endfor %}
  • {% endfor %}
{% else %}

{% trans "No translation team created yet. :(" %}

{% endif %} {% if team_request_form %} {% if request.user.is_authenticated and not is_maintainer %} {% trans "Request a new team" %}
Request a new translation team {% form_as_table_rows team_request_form %}

{% endif %} {% endif %} {% endwith %}
{% endblock %}