Merge pull request 'Fix "merge #408"' (#414) from h3ndrik/pyfedi:fix_admin_tables into main

Reviewed-on: https://codeberg.org/rimu/pyfedi/pulls/414
This commit is contained in:
Andrew Slater 2025-01-06 16:07:45 +00:00
commit 241f0a359d

View file

@ -80,8 +80,8 @@
<td><span title="{{ _('Banned') }}">{{ '<span class="red">Banned</span>'|safe if user.banned }}
{{ '<span class="red">Banned posts</span>'|safe if user.ban_posts }}
{{ '<span class="red">Banned comments</span>'|safe if user.ban_comments }}</span></td>
<td><span title="{{ user.last_seen }}">{{ arrow.get(user.last_seen).humanize(locale=locale) }}</span></td>
<td><span title="{{ _('Reports') }}">{{ user.reports if user.reports > 0 }}</span></td>
<td><span title="{{ _('Attitude') }}">{% if user.attitude %}{{ (user.attitude * 100) | round | int }}%{% endif %}</span></td>
<td><span title="{{ _('Reputation') }}">{% if user.reputation %}R {{ user.reputation | round | int }}{% endif %}</span></td>
<td><span title="{{ _('Last Seen') }}: {{ user.last_seen }}">{{ arrow.get(user.last_seen).humanize(locale=locale) }}</span></td>
<td><a href="{{ url_for('admin.admin_user_edit', user_id=user.id) }}">Edit</a>,