{% extends "core/base.html" %} {% load staticfiles %} {% load distro_tracker_extras %} {% with team=object %} {% block title %}{{ block.super }} - {{ team }}{% endblock %} {% block extra-css %} {% endblock %} {% block page-header-title %}

{{ team }}

{% endblock %} {% block page-header-right %} {% include 'accounts/user-widget.html' with logout_redirect=request.path %} {% if request.user.is_authenticated %} {% if request.user == team.owner %} {# Owner specific team options #}
{% else %} {% if user_member_of_team %} {# Team meber options #}
{% csrf_token %}
{% endif %} {% endif %} {% endif %} {% if not user_member_of_team %} {# Public team options #} {% if team.public %} {% if request.user.emails.all|length == 1 %}
{% csrf_token %}
{% else %} {% endif %} {% else %} | Contact the owner {% endif %} {% endif %} {% endblock %} {% block page-content %} {# A hidden modal which asks for confirmation before deleting the team. #} {% spaceless %} {% endspaceless %} {# A hidden modal which asks for confirmation before removing a package from the team. #} {% spaceless %} {% endspaceless %}
{% if team.public or user_member_of_team %}{# Should display? #} {% if team.packages.all %}{# Anything to display? #}
team packages
{% endif %} {% endif %}
team info
  • name: {{ team.name }}
  • {% if team.maintainer_email %}
  • maintainer email: {{ team.maintainer_email }}
  • {% endif %} {% if team.url %}
  • url: {{ team.url }}
  • {% endif %} {% if team.description %}
  • description: {{ team.description }}
  • {% endif %}
{% if user_member_of_team %}
add packages
{% csrf_token %}
{% endif %}
{% endblock %} {% endwith %}