forked from MarseyWorld/MarseyWorld
we require ban reason now
parent
34860303fb
commit
b91e3465bb
|
@ -22,7 +22,7 @@
|
||||||
<td {% if user.last_active %}data-time="{{user.last_active}}"{% endif %}></td>
|
<td {% if user.last_active %}data-time="{{user.last_active}}"{% endif %}></td>
|
||||||
<td>{{user.truescore}}</td>
|
<td>{{user.truescore}}</td>
|
||||||
<td><a href="/@{{user.shadowbanner}}">{{user.shadowbanner}}</a></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>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</table>
|
</table>
|
||||||
|
|
|
@ -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 %}
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
<td {% if user.last_active %}data-time="{{user.last_active}}"{% endif %}></td>
|
<td {% if user.last_active %}data-time="{{user.last_active}}"{% endif %}></td>
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
<td>{{user.truescore}}</td>
|
<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>{{user.banned_by | safe}}</td>
|
||||||
<td {% if user.unban_utc %}data-time="{{user.unban_utc}}"{% endif %}></td>
|
<td {% if user.unban_utc %}data-time="{{user.unban_utc}}"{% endif %}></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
|
@ -247,7 +247,7 @@
|
||||||
|
|
||||||
{{macros.reports(c, 'comment')}}
|
{{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>
|
<div id="comment-banned-warning" class="comment-text text-removed mb-0">removed by @{{c.ban_reason}} (Site Admin)</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
|
@ -143,7 +143,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{{p.realbody(v) | safe}}
|
{{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>
|
<div class="text-removed mb-0">removed by @{{p.ban_reason}} (Site Admin)</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue