better hiding for shadowbannedcel names - vol 1

Aevann 2024-04-18 21:50:33 +02:00
parent 454939cdc3
commit bea2de901a
4 changed files with 45 additions and 43 deletions

View File

@ -24,13 +24,15 @@
</tr>
</thead>
{% for user in users %}
<tr>
<td>{% include "user_in_table.html" %}</td>
<td>{{user.truescore}}</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>
{% if can_see(v, user) %}
<tr>
<td>{% include "user_in_table.html" %}</td>
<td>{{user.truescore}}</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>
{% endif %}
{% endfor %}
</table>
</div>

View File

@ -18,19 +18,21 @@
</tr>
</thead>
{% for block in blocks %}
<tr>
<td>
{% with user = block.user %}
{% include "user_in_table.html" %}
{% endwith %}
</td>
<td>
{% with user = block.target %}
{% include "user_in_table.html" %}
{% endwith %}
</td>
<td data-time="{{block.created_utc}}"></td>
</tr>
{% if can_see(v, block.user) and can_see(v, block.target) %}
<tr>
<td>
{% with user = block.user %}
{% include "user_in_table.html" %}
{% endwith %}
</td>
<td>
{% with user = block.target %}
{% include "user_in_table.html" %}
{% endwith %}
</td>
<td data-time="{{block.created_utc}}"></td>
</tr>
{% endif %}
{% endfor %}
</table>
</div>

View File

@ -6,7 +6,6 @@
<table>
<thead>
<tr>
<th>#</th>
<th>Name</th>
{% if v and v.admin_level >= PERMS['VIEW_LAST_ACTIVE'] -%}
<th>Last Active</th>
@ -17,16 +16,17 @@
</tr>
</thead>
{% for user in users %}
<tr>
<td>{{loop.index}}</td>
<td>{% include "user_in_table.html" %}</td>
{% if v and v.admin_level >= PERMS['VIEW_LAST_ACTIVE'] -%}
<td {% if user.last_active %}data-time="{{user.last_active}}"{% endif %}></td>
{%- endif %}
<td>{{user.truescore}}</td>
<td>{{user.chudder | safe}}</td>
<td {% if user.chud != 1 %}data-time="{{user.chud}}"{% endif %}></td>
</tr>
{% if can_see(v, user) %}
<tr>
<td>{% include "user_in_table.html" %}</td>
{% if v and v.admin_level >= PERMS['VIEW_LAST_ACTIVE'] -%}
<td {% if user.last_active %}data-time="{{user.last_active}}"{% endif %}></td>
{%- endif %}
<td>{{user.truescore}}</td>
<td>{{user.chudder | safe}}</td>
<td {% if user.chud != 1 %}data-time="{{user.chud}}"{% endif %}></td>
</tr>
{% endif %}
{% endfor %}
</table>
</div>

View File

@ -1,14 +1,12 @@
{% if user %}
{% if can_see(v, user) %}
{%- include 'admin/shadowbanned_tooltip.html' -%}
<a {% if not user.earlylife %}class="unbreakable"{% endif %} data-sort="{{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=8" 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 %}
{%- include 'admin/shadowbanned_tooltip.html' -%}
<a {% if not user.earlylife %}class="unbreakable"{% endif %} data-sort="{{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=8" 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 %}