we require ban reason now

master
Aevann 2023-08-10 18:38:11 +03:00
parent 34860303fb
commit b91e3465bb
5 changed files with 5 additions and 5 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 | safe}}{% else %}<span class="text-muted" style="font-style:italic;">No reason</span>{% endif %}</td>
<td>{{user.ban_reason | safe}}</td>
</tr>
{% endfor %}
</table>

View File

@ -1 +1 @@
{% if v and v.admin_level >= PERMS['USER_SHADOWBAN'] and user.shadowbanned %}<i class="fas fa-user-times text-admin" data-bs-toggle="tooltip" data-bs-placement="bottom" title='Shadowbanned by @{{user.shadowbanner}}{% if user.ban_reason %} for "{{user.ban_reason}}"{% endif %}' data-bs-html="true"></i>{% endif %}
{% if v and v.admin_level >= PERMS['USER_SHADOWBAN'] and user.shadowbanned %}<i class="fas fa-user-times text-admin" data-bs-toggle="tooltip" data-bs-placement="bottom" title='Shadowbanned by @{{user.shadowbanner}} for "{{user.ban_reason}}"' data-bs-html="true"></i>{% endif %}

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 | safe}}{% else %}<span class="text-muted" style="font-style:italic;">No reason</span>{% endif %}</td>
<td>{{user.ban_reason | safe}}</td>
<td>{{user.banned_by | safe}}</td>
<td {% if user.unban_utc %}data-time="{{user.unban_utc}}"{% endif %}></td>
</tr>

View File

@ -247,7 +247,7 @@
{{macros.reports(c, 'comment')}}
{% if c.is_banned and c.ban_reason %}
{% if c.is_banned %}
<div id="comment-banned-warning" class="comment-text text-removed mb-0">removed by @{{c.ban_reason}} (Site Admin)</div>
{% endif %}

View File

@ -143,7 +143,7 @@
{% endif %}
{{p.realbody(v) | safe}}
{% if p.is_banned and p.ban_reason %}
{% if p.is_banned %}
<div class="text-removed mb-0">removed by @{{p.ban_reason}} (Site Admin)</div>
{% endif %}
</div>