mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
round attitude and reputation numbers
This commit is contained in:
parent
dc05ca1816
commit
85af8fec29
2 changed files with 4 additions and 4 deletions
|
@ -42,8 +42,8 @@
|
|||
{{ user.last_seen }}
|
||||
{% endif %}
|
||||
</td>
|
||||
<td>{{ user.attitude * 100 if user.attitude != 1 }}</td>
|
||||
<td>{{ 'R ' + str(user.reputation) if user.reputation }}</td>
|
||||
<td>{% if user.attitude != 1 %}{{ (user.attitude * 100) | round | int }}{% endif %}</td>
|
||||
<td>{% if user.reputation %}R {{ user.reputation | round | int }}{% endif %}</td>
|
||||
<td>{{ '<span class="red">Banned</span>'|safe if user.banned }} </td>
|
||||
<td>{{ user.reports if user.reports > 0 }} </td>
|
||||
<td>{{ user.ip_address if user.ip_address }}<br />{{ user.ip_address_country if user.ip_address_country }}</td>
|
||||
|
|
|
@ -44,8 +44,8 @@
|
|||
{{ user.last_seen }}
|
||||
{% endif %}
|
||||
</td>
|
||||
<td>{{ user.attitude * 100 if user.attitude != 1 }}</td>
|
||||
<td>{{ 'R ' + str(user.reputation) if user.reputation }}</td>
|
||||
<td>{% if user.attitude != 1 %}{{ (user.attitude * 100) | round | int }}{% endif %}</td>
|
||||
<td>{% if user.reputation %}R {{ user.reputation | round | int }}{% endif %}</td>
|
||||
<td>{{ '<span class="red">Banned</span>'|safe if user.banned }} </td>
|
||||
<td>{{ user.reports if user.reports > 0 }} </td>
|
||||
<td>{{ user.ip_address if user.ip_address }} </td>
|
||||
|
|
Loading…
Add table
Reference in a new issue