Fix crash on users list page

This commit is contained in:
rubenwardy 2024-06-09 11:53:52 +01:00
parent 663fb38d9f
commit 5eb202941a

@ -31,7 +31,7 @@
<a class="list-group-item list-group-item-action" href="{{ url_for('users.profile', username=user.username) }}"> <a class="list-group-item list-group-item-action" href="{{ url_for('users.profile', username=user.username) }}">
<div class="row"> <div class="row">
<div class="col-sm-2 {{ user.rank }}" <div class="col-sm-2 {{ user.rank }}"
title="{{ _('Rank: %(rank)s.', rank=user.rank.get_title()) }}"> title="{{ _('Rank: %(rank)s.', rank=user.rank.title) }}">
{% if user.rank == user.rank.ADMIN %} {% if user.rank == user.rank.ADMIN %}
<i class="fas fa-user-cog me-2"></i> <i class="fas fa-user-cog me-2"></i>
{% elif user.rank == user.rank.MODERATOR %} {% elif user.rank == user.rank.MODERATOR %}