contentdb/app/templates/users/list.html

69 lines
1.6 KiB
HTML
Raw Normal View History

2018-03-24 20:24:34 +01:00
{% extends "base.html" %}
{% block title %}
2020-07-12 21:59:06 +02:00
{{ _("Users") }}
2018-03-24 20:24:34 +01:00
{% endblock %}
{% block content %}
2020-07-12 21:59:06 +02:00
<h1>{{ _("Users") }}</h1>
<div class="userlist list-group">
<div class="list-group-item">
<div class="row text-muted">
<div class="col-sm-2">
{{ _("Rank") }}
</div>
<span class="col-sm">
{{ _("Username") }}
</span>
<div class="col-sm-1 text-center">
{{ _("Packages") }}
</div>
</div>
</div>
{% for pair in users %}
{% set user = pair[0] %}
{% set count_pkgs = pair[1] %}
<a class="list-group-item list-group-item-action" href="{{ url_for('users.profile', username=user.username) }}">
<div class="row">
<div class="col-sm-2 {{ user.rank }}"
2024-06-09 12:53:52 +02:00
title="{{ _('Rank: %(rank)s.', rank=user.rank.title) }}">
2020-07-12 21:59:06 +02:00
{% if user.rank == user.rank.ADMIN %}
2023-08-22 20:58:43 +02:00
<i class="fas fa-user-cog me-2"></i>
2020-07-12 21:59:06 +02:00
{% elif user.rank == user.rank.MODERATOR %}
2023-08-22 20:58:43 +02:00
<i class="fas fa-user-shield me-2"></i>
2020-07-12 21:59:06 +02:00
{% elif user.rank == user.rank.EDITOR %}
2023-08-22 20:58:43 +02:00
<i class="fas fa-user-edit me-2"></i>
2021-08-16 19:57:05 +02:00
{% elif user.rank == user.rank.APPROVER %}
2023-08-22 20:58:43 +02:00
<i class="fas fa-user-check me-2"></i>
{% elif user.rank == user.rank.BOT %}
2023-08-22 20:58:43 +02:00
<i class="fas fa-robot me-2"></i>
2020-07-12 21:59:06 +02:00
{% else %}
2023-08-22 20:58:43 +02:00
<i class="fas fa-user me-2"></i>
2020-07-12 21:59:06 +02:00
{% endif %}
2024-06-08 13:27:05 +02:00
{{ user.rank.title }}
2020-07-12 21:59:06 +02:00
</div>
<span class="col-sm {{ user.rank }}">
{{ user.display_name }}
{% if user.username != user.display_name %}
2023-08-22 20:58:43 +02:00
<span class="text-muted small ms-2">
({{ user.username }})
</span>
{% endif %}
2020-07-12 21:59:06 +02:00
</span>
<div class="col-sm-1 text-center">
<b>{{ count_pkgs }}</b>
</div>
</div>
</a>
2018-03-24 20:24:34 +01:00
{% endfor %}
2020-07-12 21:59:06 +02:00
</div>
2018-03-24 20:24:34 +01:00
{% endblock %}