By using this site, you agree to have cookies stored on your device, strictly for functional purposes, such as storing your session and preferences.

Dismiss

 repo-users.html

View raw Download
text/html • 1.46 kiB
HTML document, ASCII text
        
            
1
{% extends "repo.html" %}
2
{% block title %}
3
Users of {{ username }}/{{ repository }}
4
{% endblock %}
5
{% block content %}
6
<x-vbox>
7
<x-frame style="--width: 896px;" class="flexible-space">
8
<x-vbox>
9
{% for relationship in relationships %}
10
<article class="card card-horizontal">
11
<figure class="branch-icon">
12
<a href="/{{ relationship.user.username }}">
13
<img src="/info/{{ relationship.user.username }}/avatar" style="width: 48px; height: 48px;">
14
</a>
15
</figure>
16
<section class="card-main flexible-space">
17
<h3>{{ relationship.user.username }}</h3>
18
{% if relationship.user.username == username %}
19
Owner
20
{% elif relationship.accessLevel == 0 %}
21
{% if repo.visibility %}
22
Contributor
23
{% else %}
24
Read-only
25
{% endif %}
26
{% elif relationship.accessLevel == 1 %}
27
Read-write
28
{% elif relationship.accessLevel == 2 %}
29
Administrator
30
{% endif %}
31
</section>
32
{% endfor %}
33
</x-vbox>
34
</x-frame>
35
</x-vbox>
36
{% endblock %}