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