user listings: ban reasons are safe

pull/78/head
justcool393 2022-12-15 14:27:07 -06:00 committed by Gitea
parent 6313ed8c27
commit 855f0483ca
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@
<td {% if user.last_active %}data-time="{{user.last_active}}"{% endif %}></td>
<td>{{user.truescore}}</td>
<td><a href="/@{{user.shadowbanner}}">{{user.shadowbanner}}</a></td>
<td>{% if user.ban_reason %}{{user.ban_reason}}{% endif %}</td>
<td>{% if user.ban_reason %}{{user.ban_reason | safe}}{% else %}<span class="text-muted" style="font-style:italic;">No reason</span>{% endif %}</td>
</tr>
{% endfor %}
</table>

View File

@ -25,7 +25,7 @@
<td {% if user.last_active %}data-time="{{user.last_active}}"{% endif %}></td>
{%- endif %}
<td>{{user.truescore}}</td>
<td>{% if user.ban_reason %}{{user.ban_reason}}{% endif %}</td>
<td>{% if user.ban_reason %}{{user.ban_reason | safe}}{% else %}<span class="text-muted" style="font-style:italic;">No reason</span>{% endif %}</td>
{% with user=user.banned_by %}
<td data-sort-key="{{user.username.lower() if user else ''}}">
{% include "user_in_table.html" %}