{% extends "repo.html" %}
{% set active_page = "users" %}
{% block title %}
{% trans username=username, repository=repository %}Users of {{ username }}/{{ repository }}{% endtrans %}
{% endblock %}
{% block content %}
{% for relationship in relationships %}
{% if user_relationship.access_level == 2 %}
{{ relationship.user.username }}
{% if relationship.user.username == username %}
{% trans %}Administrator / Owner{% endtrans %}
{% else %}
{% endif %}
{% else %}
{{ relationship.user.username }}
{% if relationship.user.username == username %}
{% trans %}Administrator / Owner{% endtrans %}
{% elif relationship.access_level == 0 %}
{% if repo.visibility %}
{% trans %}Contributor{% endtrans %}
{% else %}
{% trans %}Read-only{% endtrans %}
{% endif %}
{% elif relationship.access_level == 1 %}
{% trans %}Read-write{% endtrans %}
{% elif relationship.access_level == 2 %}
{% trans %}Administrator{% endtrans %}
{% endif %}
{% endif %}
{% endfor %}
{% if user_relationship.access_level == 2 %}
{% endif %}
{% endblock %}