File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed
warehouse/admin/templates/admin/users Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change 40
40
< th > Username</ th >
41
41
< th > Name</ th >
42
42
< th > Email</ th >
43
- < th > Admin</ th >
44
- < th > Moderator</ th >
45
- < th > PSF Staff</ th >
43
+ < th > PyPI Roles</ th >
46
44
< th > Active</ th >
47
45
< th > 2FA</ th >
46
+ < th > Frozen</ th >
48
47
</ tr >
49
48
</ thead >
50
49
< tbody >
56
55
</ td >
57
56
< td > {{ user.name }}</ td >
58
57
< td > {{ user.email }}</ td >
59
- < td > {% if user.is_superuser %}< i class ="fa fa-check text-green "> </ i > {% endif %}</ td >
60
- < td > {% if user.is_moderator %}< i class ="fa fa-check text-green "> </ i > {% endif %}</ td >
61
- < td > {% if user.is_psf_staff %}< i class ="fa fa-check text-green "> </ i > {% endif %}</ td >
58
+ < td >
59
+ {% set pypi_roles = [] %}
60
+ {% if user.is_superuser %}{% set _ = pypi_roles.append("Admin") %}{% endif %}
61
+ {% if user.is_moderator %}{% set _ = pypi_roles.append("Moderator") %}{% endif %}
62
+ {% if user.is_psf_staff %}{% set _ = pypi_roles.append("PSF Staff") %}{% endif %}
63
+ {% if user.is_observer %}{% set _ = pypi_roles.append("Observer") %}{% endif %}
64
+ {% if user.is_support %}{% set _ = pypi_roles.append("Support") %}{% endif %}
65
+ {{ pypi_roles|join(', ') }}
66
+ </ td >
62
67
< td > {% if user.is_active %}< i class ="fa fa-check text-green "> </ i > {% endif %}</ td >
63
68
< td > {% if user.has_two_factor %}< i class ="fa fa-check text-green "> </ i > {% endif %}</ td >
69
+ < td > {% if user.is_frozen %}< i class ="fa fa-check text-red "> </ i > {% endif %}</ td >
64
70
</ tr >
65
71
{% endfor %}
66
72
</ tbody >
You can’t perform that action at this time.
0 commit comments