forked from rDrama/rDrama
quick hack to hide shadowbanned users in tables
parent
5def0e32df
commit
83e9f4c852
|
@ -7566,3 +7566,7 @@ ul {
|
|||
flex: 1;
|
||||
margin-left: 0.5rem;
|
||||
}
|
||||
|
||||
tr:has(hideme) {
|
||||
display: none
|
||||
}
|
||||
|
|
|
@ -1,12 +1,17 @@
|
|||
{% if user %}
|
||||
{%- include 'admin/shadowbanned_tooltip.html' -%}
|
||||
<a class="unbreakable" data-sort-key="{{user.username.lower()}}" style="color:#{{user.name_color}};font-weight:bold" href="/@{{user.username}}">
|
||||
<div class="profile-pic-20-wrapper mb-2">
|
||||
<img loading="lazy" src="{{user.profile_url}}" class="pp20">
|
||||
{% if user.hat_active(v)[0] -%}
|
||||
<img class="profile-pic-20-hat hat" loading="lazy" src="{{user.hat_active(v)[0]}}?x=6" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{user.hat_active(v)[1]}}">
|
||||
{%- endif %}
|
||||
</div>
|
||||
<span {% if user.patron %}class="patron" style="background-color:#{{user.name_color}}"{% endif %} {% if user.pride_username(v) %}pride_username{% endif %}>{{user.user_name}}</span>
|
||||
</a>
|
||||
{%- include 'admin/shadowbanned_tooltip.html' -%}
|
||||
|
||||
{% if not can_see(v, user) %}
|
||||
<hideme></hideme></td></tr><tr class="d-none"><td>
|
||||
{% else %}
|
||||
<a class="unbreakable" data-sort-key="{{user.username.lower()}}" style="color:#{{user.name_color}};font-weight:bold" href="/@{{user.username}}">
|
||||
<div class="profile-pic-20-wrapper mb-2">
|
||||
<img loading="lazy" src="{{user.profile_url}}" class="pp20">
|
||||
{% if user.hat_active(v)[0] -%}
|
||||
<img class="profile-pic-20-hat hat" loading="lazy" src="{{user.hat_active(v)[0]}}?x=6" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{user.hat_active(v)[1]}}">
|
||||
{%- endif %}
|
||||
</div>
|
||||
<span {% if user.patron %}class="patron" style="background-color:#{{user.name_color}}"{% endif %} {% if user.pride_username(v) %}pride_username{% endif %}>{{user.user_name}}</span>
|
||||
</a>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in New Issue