{% extends "repo.html" %}
{% set active_page = "users" %}
{% block title %}
Users of {{ username }}/{{ repository }}
{% endblock %}
{% block content %}
{% for relationship in relationships %}
{% if user_relationship.accessLevel == 2 %}
{{ relationship.user.username }}
{% if relationship.user.username == username %}
Administrator / Owner
{% else %}
{% endif %}
{% else %}
{{ relationship.user.username }}
{% if relationship.user.username == username %}
Administrator / 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 %}
{% endif %}
{% endfor %}
{% if user_relationship.accessLevel == 2 %}
{% endif %}
{% endblock %}