add hats to most tables

remotes/1693045480750635534/spooky-22
Aevann1 2022-09-05 05:01:06 +02:00
parent fe7f0316f7
commit 332a03219b
23 changed files with 113 additions and 321 deletions

View File

@ -15,7 +15,7 @@
{% for user in participants %}
<tr>
<td>{{loop.index}}</td>
<td><a style="color:#{{user.name_color}}" href="/@{{user.username}}"><img loading="lazy" src="{{user.profile_url}}" class="pp20"><span {% if user.patron %}class="patron" style="background-color:#{{user.name_color}}"{% endif %}>{{user.username}}</span></a></td>
<td>{% include "user_in_table.html" %}</td>
<td>{{user.currently_held_lottery_tickets}}</td>
</tr>
{% endfor %}

View File

@ -21,7 +21,7 @@
{% for user in admins %}
<tr>
<td>{{loop.index}}</td>
<td><a style="color:#{{user.name_color}}" href="/@{{user.username}}"><img loading="lazy" src="{{user.profile_url}}" class="pp20"><span {% if user.patron %}class="patron" style="background-color:#{{user.name_color}}"{% endif %}>{{user.username}}</span></a></td>
<td>{% include "user_in_table.html" %}</td>
<td style="text-align:right;">{{user.truecoins}}</td>
<td style="text-align:right;"><a href="/log?admin={{user.username}}">{{user.modaction_num}}</a></td>
</tr>

View File

@ -11,8 +11,8 @@
{% for user in users %}
<tr>
<td>{{loop.index}}</td>
<td><a style="color:#{{user.name_color}}" href="/@{{user.username}}"><img loading="lazy" src="{{user.profile_url}}" class="pp20"><span {% if user.patron %}class="patron" style="background-color:#{{user.name_color}}"{% endif %}>{{user.username}}</span></a></td>
</tr>
<td>{% include "user_in_table.html" %}</td>
</tr>
{% endfor %}
</table>

View File

@ -13,9 +13,13 @@
{% for user in users %}
<tr>
<td>{{loop.index}}</td>
<td><a style="color:#{{user.name_color}}" href="/@{{user.username}}"><img loading="lazy" src="{{user.profile_url}}" class="pp20"><span {% if user.patron %}class="patron" style="background-color:#{{user.name_color}}"{% endif %}>{{user.username}}</span></a></td>
<td>{% include "user_in_table.html" %}</td>
<td>{% if user.ban_reason %}{{user.ban_reason}}{% endif %}</td>
<td><a href="/@{{user.banned_by.username}}"><img loading="lazy" src="{{user.banned_by.profile_url}}" class="pp20"><span {% if user.banned_by.patron %}class="patron" style="background-color:#{{user.banned_by.name_color}}"{% endif %}>{{user.banned_by.username}}</span></a></td>
<td>
{% with user=user.banned_by %}
{% include "user_in_table.html" %}
{% endwith %}
</td>
</tr>
{% endfor %}
</table>

View File

@ -20,7 +20,7 @@
{% for user in users %}
<tr>
<td>{{loop.index}}</td>
<td><a style="color:#{{user.name_color}}" href="/@{{user.username}}"><img loading="lazy" src="{{user.profile_url}}" class="pp20"><span {% if user.patron %}class="patron" style="background-color:#{{user.name_color}}"{% endif %}>{{user.username}}</span></a></td>
<td>{% include "user_in_table.html" %}</td>
{% if v.id == u.id %}
<td><div class="btn btn-danger pr-2" onclick="removeFollower(event, '{{user.username}}')">Remove follow</div></td>
{% endif %}

View File

@ -20,7 +20,7 @@
{% for user in users %}
<tr>
<td>{{loop.index}}</td>
<td><a style="color:#{{user.name_color}}" href="/@{{user.username}}"><img loading="lazy" src="{{user.profile_url}}" class="pp20"><span {% if user.patron %}class="patron" style="background-color:#{{user.name_color}}"{% endif %}>{{user.username}}</span></a></td>
<td>{% include "user_in_table.html" %}</td>
{% if v.id == u.id %}
<td><div class="btn btn-danger" onclick="removeFollowing(event, '{{user.username}}')">Unfollow</div></td>
{% endif %}

View File

@ -13,7 +13,7 @@
{% for user in users %}
<tr>
<td>{{loop.index}}</td>
<td><a style="color:#{{user.name_color}}" href="/@{{user.username}}"><img loading="lazy" src="{{user.profile_url}}" class="pp20"><span {% if user.patron %}class="patron" style="background-color:#{{user.name_color}}"{% endif %}>{{user.username}}</span></a></td>
<td>{% include "user_in_table.html" %}</td>
<td>{{user.ban_reason.split('by ')[1]}}</td>
</tr>
{% endfor %}

View File

@ -64,7 +64,7 @@
<td>{{hat.name}}</td>
<td style="word-break:break-word">{{hat.censored_description(v)}}</td>
{% if SITE == 'rdrama.net' %}
<td><a style="color:#{{user.name_color}}" href="/@{{user.username}}"><img loading="lazy" src="{{user.profile_url}}" class="pp20"><span {% if user.patron %}class="patron" style="background-color:#{{user.name_color}}"{% endif %}>{{user.username}}</span></a></td>
<td>{% include "user_in_table.html" %}</td>
{% endif %}
<td><a href="/hat_owners/{{hat.id}}">{{hat.number_sold}}</a></td>
<td>{{hat.price}}</td>

View File

@ -37,17 +37,7 @@
{% for user in users1 %}
<tr {% if v.id == user.id %}class="self"{% endif %}>
<td>{{loop.index}}</td>
<td>
<a style="color:#{{user.name_color}};font-weight:bold" href="/@{{user.username}}">
<div class="profile-pic-20-wrapper">
<img loading="lazy" src="{{user.profile_url}}" class="pp20">
{% if user.hat_active -%}
<img class="profile-pic-20-hat hat" loading="lazy" src="/i/hats/{{user.hat_active}}?v=3" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{user.hat_tooltip(v)}}">
{%- endif %}
</div>
<span {% if user.patron %}class="patron" style="background-color:#{{user.name_color}}"{% endif %}>{{user.username}}</span>
</a>
</td>
<td>{% include "user_in_table.html" %}</td>
<td>{{user.coins}}</td>
</tr>
{% endfor %}
@ -55,15 +45,9 @@
<tr style="border-top:2px solid var(--primary)">
<td>{{pos1}}</td>
<td>
<a style="color:#{{v.name_color}};font-weight:bold" href="/@{{v.username}}">
<div class="profile-pic-20-wrapper">
<img loading="lazy" src="{{v.profile_url}}" class="pp20">
{% if v.hat_active -%}
<img class="profile-pic-20-hat hat" loading="lazy" src="/i/hats/{{v.hat_active}}?v=3" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{v.hat_tooltip(v)}}">
{%- endif %}
</div>
<span {% if v.patron %}class="patron" style="background-color:#{{v.name_color}}"{% endif %}>{{v.username}}</span>
</a>
{% with user=v %}
{% include "user_in_table.html" %}
{% endwith %}
</td>
<td>{{v.coins}}</td>
</tr>
@ -84,17 +68,7 @@
{% for user in users7 %}
<tr {% if v.id == user.id %}class="self"{% endif %}>
<td>{{loop.index}}</td>
<td>
<a style="color:#{{user.name_color}};font-weight:bold" href="/@{{user.username}}">
<div class="profile-pic-20-wrapper">
<img loading="lazy" src="{{user.profile_url}}" class="pp20">
{% if user.hat_active -%}
<img class="profile-pic-20-hat hat" loading="lazy" src="/i/hats/{{user.hat_active}}?v=3" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{user.hat_tooltip(v)}}">
{%- endif %}
</div>
<span {% if user.patron %}class="patron" style="background-color:#{{user.name_color}}"{% endif %}>{{user.username}}</span>
</a>
</td>
<td>{% include "user_in_table.html" %}</td>
<td>{{user.coins_spent}}</td>
</tr>
{% endfor %}
@ -102,15 +76,9 @@
<tr style="border-top:2px solid var(--primary)">
<td>{{pos7}}</td>
<td>
<a style="color:#{{v.name_color}};font-weight:bold" href="/@{{v.username}}">
<div class="profile-pic-20-wrapper">
<img loading="lazy" src="{{v.profile_url}}" class="pp20">
{% if v.hat_active -%}
<img class="profile-pic-20-hat hat" loading="lazy" src="/i/hats/{{v.hat_active}}?v=3" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{v.hat_tooltip(v)}}">
{%- endif %}
</div>
<span {% if v.patron %}class="patron" style="background-color:#{{v.name_color}}"{% endif %}>{{v.username}}</span>
</a>
{% with user=v %}
{% include "user_in_table.html" %}
{% endwith %}
</td>
<td>{{v.coins_spent}}</td>
</tr>
@ -131,17 +99,7 @@
{% for user in users10 %}
<tr {% if v.id == user.id %}class="self"{% endif %}>
<td>{{loop.index}}</td>
<td>
<a style="color:#{{user.name_color}};font-weight:bold" href="/@{{user.username}}">
<div class="profile-pic-20-wrapper">
<img loading="lazy" src="{{user.profile_url}}" class="pp20">
{% if user.hat_active -%}
<img class="profile-pic-20-hat hat" loading="lazy" src="/i/hats/{{user.hat_active}}?v=3" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{user.hat_tooltip(v)}}">
{%- endif %}
</div>
<span {% if user.patron %}class="patron" style="background-color:#{{user.name_color}}"{% endif %}>{{user.username}}</span>
</a>
</td>
<td>{% include "user_in_table.html" %}</td>
<td>{{user.truecoins}}</td>
</tr>
{% endfor %}
@ -149,15 +107,9 @@
<tr style="border-top:2px solid var(--primary)">
<td>{{pos10}}</td>
<td>
<a style="color:#{{v.name_color}};font-weight:bold" href="/@{{v.username}}">
<div class="profile-pic-20-wrapper">
<img loading="lazy" src="{{v.profile_url}}" class="pp20">
{% if v.hat_active -%}
<img class="profile-pic-20-hat hat" loading="lazy" src="/i/hats/{{v.hat_active}}?v=3" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{v.hat_tooltip(v)}}">
{%- endif %}
</div>
<span {% if v.patron %}class="patron" style="background-color:#{{v.name_color}}"{% endif %}>{{v.username}}</span>
</a>
{% with user=v %}
{% include "user_in_table.html" %}
{% endwith %}
</td>
<td>{{v.truecoins}}</td>
</tr>
@ -178,17 +130,7 @@
{% for user in users2 %}
<tr {% if v.id == user.id %}class="self"{% endif %}>
<td>{{loop.index}}</td>
<td>
<a style="color:#{{user.name_color}};font-weight:bold" href="/@{{user.username}}">
<div class="profile-pic-20-wrapper">
<img loading="lazy" src="{{user.profile_url}}" class="pp20">
{% if user.hat_active -%}
<img class="profile-pic-20-hat hat" loading="lazy" src="/i/hats/{{user.hat_active}}?v=3" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{user.hat_tooltip(v)}}">
{%- endif %}
</div>
<span {% if user.patron %}class="patron" style="background-color:#{{user.name_color}}"{% endif %}>{{user.username}}</span>
</a>
</td>
<td>{% include "user_in_table.html" %}</td>
<td>{{user.stored_subscriber_count}}</td>
</tr>
{% endfor %}
@ -196,15 +138,9 @@
<tr style="border-top:2px solid var(--primary)">
<td>{{pos2}}</td>
<td>
<a style="color:#{{v.name_color}};font-weight:bold" href="/@{{v.username}}">
<div class="profile-pic-20-wrapper">
<img loading="lazy" src="{{v.profile_url}}" class="pp20">
{% if v.hat_active -%}
<img class="profile-pic-20-hat hat" loading="lazy" src="/i/hats/{{v.hat_active}}?v=3" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{v.hat_tooltip(v)}}">
{%- endif %}
</div>
<span {% if v.patron %}class="patron" style="background-color:#{{v.name_color}}"{% endif %}>{{v.username}}</span>
</a>
{% with user=v %}
{% include "user_in_table.html" %}
{% endwith %}
</td>
<td>{{v.stored_subscriber_count}}</td>
</tr>
@ -224,17 +160,7 @@
{% for user in users3 %}
<tr {% if v.id == user.id %}class="self"{% endif %}>
<td>{{loop.index}}</td>
<td>
<a style="color:#{{user.name_color}};font-weight:bold" href="/@{{user.username}}">
<div class="profile-pic-20-wrapper">
<img loading="lazy" src="{{user.profile_url}}" class="pp20">
{% if user.hat_active -%}
<img class="profile-pic-20-hat hat" loading="lazy" src="/i/hats/{{user.hat_active}}?v=3" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{user.hat_tooltip(v)}}">
{%- endif %}
</div>
<span {% if user.patron %}class="patron" style="background-color:#{{user.name_color}}"{% endif %}>{{user.username}}</span>
</a>
</td>
<td>{% include "user_in_table.html" %}</td>
<td>{{user.post_count}}</td>
</tr>
{% endfor %}
@ -242,15 +168,9 @@
<tr style="border-top:2px solid var(--primary)">
<td>{{pos3}}</td>
<td>
<a style="color:#{{v.name_color}};font-weight:bold" href="/@{{v.username}}">
<div class="profile-pic-20-wrapper">
<img loading="lazy" src="{{v.profile_url}}" class="pp20">
{% if v.hat_active -%}
<img class="profile-pic-20-hat hat" loading="lazy" src="/i/hats/{{v.hat_active}}?v=3" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{v.hat_tooltip(v)}}">
{%- endif %}
</div>
<span {% if v.patron %}class="patron" style="background-color:#{{v.name_color}}"{% endif %}>{{v.username}}</span>
</a>
{% with user=v %}
{% include "user_in_table.html" %}
{% endwith %}
</td>
<td>{{v.post_count}}</td>
</tr>
@ -270,17 +190,7 @@
{% for user in users4 %}
<tr {% if v.id == user.id %}class="self"{% endif %}>
<td>{{loop.index}}</td>
<td>
<a style="color:#{{user.name_color}};font-weight:bold" href="/@{{user.username}}">
<div class="profile-pic-20-wrapper">
<img loading="lazy" src="{{user.profile_url}}" class="pp20">
{% if user.hat_active -%}
<img class="profile-pic-20-hat hat" loading="lazy" src="/i/hats/{{user.hat_active}}?v=3" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{user.hat_tooltip(v)}}">
{%- endif %}
</div>
<span {% if user.patron %}class="patron" style="background-color:#{{user.name_color}}"{% endif %}>{{user.username}}</span>
</a>
</td>
<td>{% include "user_in_table.html" %}</td>
<td>{{user.comment_count}}</td>
</tr>
{% endfor %}
@ -288,15 +198,9 @@
<tr style="border-top:2px solid var(--primary)">
<td>{{pos4}}</td>
<td>
<a style="color:#{{v.name_color}};font-weight:bold" href="/@{{v.username}}">
<div class="profile-pic-20-wrapper">
<img loading="lazy" src="{{v.profile_url}}" class="pp20">
{% if v.hat_active -%}
<img class="profile-pic-20-hat hat" loading="lazy" src="/i/hats/{{v.hat_active}}?v=3" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{v.hat_tooltip(v)}}">
{%- endif %}
</div>
<span {% if v.patron %}class="patron" style="background-color:#{{v.name_color}}"{% endif %}>{{v.username}}</span>
</a>
{% with user=v %}
{% include "user_in_table.html" %}
{% endwith %}
</td>
<td>{{v.comment_count}}</td>
</tr>
@ -316,17 +220,7 @@
{% for user in users5 %}
<tr {% if v.id == user.id %}class="self"{% endif %}>
<td>{{loop.index}}</td>
<td>
<a style="color:#{{user.name_color}};font-weight:bold" href="/@{{user.username}}">
<div class="profile-pic-20-wrapper">
<img loading="lazy" src="{{user.profile_url}}" class="pp20">
{% if user.hat_active -%}
<img class="profile-pic-20-hat hat" loading="lazy" src="/i/hats/{{user.hat_active}}?v=3" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{user.hat_tooltip(v)}}">
{%- endif %}
</div>
<span {% if user.patron %}class="patron" style="background-color:#{{user.name_color}}"{% endif %}>{{user.username}}</span>
</a>
</td>
<td>{% include "user_in_table.html" %}</td>
<td>{{user.received_award_count}}</td>
</tr>
{% endfor %}
@ -334,15 +228,9 @@
<tr style="border-top:2px solid var(--primary)">
<td>{{pos5}}</td>
<td>
<a style="color:#{{v.name_color}};font-weight:bold" href="/@{{v.username}}">
<div class="profile-pic-20-wrapper">
<img loading="lazy" src="{{v.profile_url}}" class="pp20">
{% if v.hat_active -%}
<img class="profile-pic-20-hat hat" loading="lazy" src="/i/hats/{{v.hat_active}}?v=3" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{v.hat_tooltip(v)}}">
{%- endif %}
</div>
<span {% if v.patron %}class="patron" style="background-color:#{{v.name_color}}"{% endif %}>{{v.username}}</span>
</a>
{% with user=v %}
{% include "user_in_table.html" %}
{% endwith %}
</td>
<td>{{v.received_award_count}}</td>
</tr>
@ -392,17 +280,7 @@
{% for user, num in users11 %}
<tr {% if v.id == user.id %}class="self"{% endif %}>
<td>{{loop.index}}</td>
<td>
<a style="color:#{{user.name_color}};font-weight:bold" href="/@{{user.username}}">
<div class="profile-pic-20-wrapper">
<img loading="lazy" src="{{user.profile_url}}" class="pp20">
{% if user.hat_active -%}
<img class="profile-pic-20-hat hat" loading="lazy" src="/i/hats/{{user.hat_active}}?v=3" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{user.hat_tooltip(v)}}">
{%- endif %}
</div>
<span {% if user.patron %}class="patron" style="background-color:#{{user.name_color}}"{% endif %}>{{user.username}}</span>
</a>
</td>
<td>{% include "user_in_table.html" %}</td>
<td>{{num}}</td>
</tr>
{% endfor %}
@ -410,15 +288,9 @@
<tr style="border-top:2px solid var(--primary)">
<td>{{pos11[0]}}</td>
<td>
<a style="color:#{{v.name_color}};font-weight:bold" href="/@{{v.username}}">
<div class="profile-pic-20-wrapper">
<img loading="lazy" src="{{v.profile_url}}" class="pp20">
{% if v.hat_active -%}
<img class="profile-pic-20-hat hat" loading="lazy" src="/i/hats/{{v.hat_active}}?v=3" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{v.hat_tooltip(v)}}">
{%- endif %}
</div>
<span {% if v.patron %}class="patron" style="background-color:#{{v.name_color}}"{% endif %}>{{v.username}}</span>
</a>
{% with user=v %}
{% include "user_in_table.html" %}
{% endwith %}
</td>
<td>{{pos11[1]}}</td>
</tr>
@ -443,33 +315,16 @@
{% for user in users6 %}
<tr {% if v.id == user.id %}class="self"{% endif %}>
<td>{{loop.index}}</td>
<td>
<a style="color:#{{user.name_color}};font-weight:bold" href="/@{{user.username}}">
<div class="profile-pic-20-wrapper">
<img loading="lazy" src="{{user.profile_url}}" class="pp20">
{% if user.hat_active -%}
<img class="profile-pic-20-hat hat" loading="lazy" src="/i/hats/{{user.hat_active}}?v=3" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{user.hat_tooltip(v)}}">
{%- endif %}
</div>
<span {% if user.patron %}class="patron" style="background-color:#{{user.name_color}}"{% endif %}>{{user.username}}</span>
</a>
</td>
<td>{% include "user_in_table.html" %}</td>
<td>{{user.basedcount}}</td>
</tr>
{% endfor %}
{% if pos6 > 25 %}
<tr style="border-top:2px solid var(--primary)">
<td>{{pos6}}</td>
<td>
<a style="color:#{{v.name_color}};font-weight:bold" href="/@{{v.username}}">
<div class="profile-pic-20-wrapper">
<img loading="lazy" src="{{v.profile_url}}" class="pp20">
{% if v.hat_active -%}
<img class="profile-pic-20-hat hat" loading="lazy" src="/i/hats/{{v.hat_active}}?v=3" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{v.hat_tooltip(v)}}">
{%- endif %}
</div>
<span {% if v.patron %}class="patron" style="background-color:#{{v.name_color}}"{% endif %}>{{v.username}}</span>
</a>
{% with user=v %}
{% include "user_in_table.html" %}
{% endwith %}
</td>
<td>{{v.basedcount}}</td>
</tr>
@ -493,17 +348,7 @@
{% for user, num in users12 %}
<tr {% if v.id == user.id %}class="self"{% endif %}>
<td>{{loop.index}}</td>
<td>
<a style="color:#{{user.name_color}};font-weight:bold" href="/@{{user.username}}">
<div class="profile-pic-20-wrapper">
<img loading="lazy" src="{{user.profile_url}}" class="pp20">
{% if user.hat_active -%}
<img class="profile-pic-20-hat hat" loading="lazy" src="/i/hats/{{user.hat_active}}?v=3" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{user.hat_tooltip(v)}}">
{%- endif %}
</div>
<span {% if user.patron %}class="patron" style="background-color:#{{user.name_color}}"{% endif %}>{{user.username}}</span>
</a>
</td>
<td>{% include "user_in_table.html" %}</td>
<td>{{num}}</td>
</tr>
{% endfor %}
@ -511,15 +356,9 @@
<tr style="border-top:2px solid var(--primary)">
<td>{{pos12[0]}}</td>
<td>
<a style="color:#{{v.name_color}};font-weight:bold" href="/@{{v.username}}">
<div class="profile-pic-20-wrapper">
<img loading="lazy" src="{{v.profile_url}}" class="pp20">
{% if v.hat_active -%}
<img class="profile-pic-20-hat hat" loading="lazy" src="/i/hats/{{v.hat_active}}?v=3" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{v.hat_tooltip(v)}}">
{%- endif %}
</div>
<span {% if v.patron %}class="patron" style="background-color:#{{v.name_color}}"{% endif %}>{{v.username}}</span>
</a>
{% with user=v %}
{% include "user_in_table.html" %}
{% endwith %}
</td>
<td>{{pos12[1]}}</td>
</tr>
@ -572,17 +411,7 @@
{% for user in users14 %}
<tr {% if v.id == user.id %}class="self"{% endif %}>
<td>{{loop.index}}</td>
<td>
<a style="color:#{{user.name_color}};font-weight:bold" href="/@{{user.username}}">
<div class="profile-pic-20-wrapper">
<img loading="lazy" src="{{user.profile_url}}" class="pp20">
{% if user.hat_active -%}
<img class="profile-pic-20-hat hat" loading="lazy" src="/i/hats/{{user.hat_active}}?v=3" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{user.hat_tooltip(v)}}">
{%- endif %}
</div>
<span {% if user.patron %}class="patron" style="background-color:#{{user.name_color}}"{% endif %}>{{user.username}}</span>
</a>
</td>
<td>{% include "user_in_table.html" %}</td>
<td>{{user.winnings}}</td>
</tr>
{% endfor %}
@ -590,15 +419,9 @@
<tr style="border-top:2px solid var(--primary)">
<td>{{pos14}}</td>
<td>
<a style="color:#{{v.name_color}};font-weight:bold" href="/@{{v.username}}">
<div class="profile-pic-20-wrapper">
<img loading="lazy" src="{{v.profile_url}}" class="pp20">
{% if v.hat_active -%}
<img class="profile-pic-20-hat hat" loading="lazy" src="/i/hats/{{v.hat_active}}?v=3" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{v.hat_tooltip(v)}}">
{%- endif %}
</div>
<span {% if v.patron %}class="patron" style="background-color:#{{v.name_color}}"{% endif %}>{{v.username}}</span>
</a>
{% with user=v %}
{% include "user_in_table.html" %}
{% endwith %}
</td>
<td>{{v.winnings}}</td>
</tr>
@ -618,17 +441,7 @@
{% for user in users15 %}
<tr {% if v.id == user.id %}class="self"{% endif %}>
<td>{{loop.index}}</td>
<td>
<a style="color:#{{user.name_color}};font-weight:bold" href="/@{{user.username}}">
<div class="profile-pic-20-wrapper">
<img loading="lazy" src="{{user.profile_url}}" class="pp20">
{% if user.hat_active -%}
<img class="profile-pic-20-hat hat" loading="lazy" src="/i/hats/{{user.hat_active}}?v=3" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{user.hat_tooltip(v)}}">
{%- endif %}
</div>
<span {% if user.patron %}class="patron" style="background-color:#{{user.name_color}}"{% endif %}>{{user.username}}</span>
</a>
</td>
<td>{% include "user_in_table.html" %}</td>
<td>{{user.winnings}}</td>
</tr>
{% endfor %}
@ -636,15 +449,9 @@
<tr style="border-top:2px solid var(--primary)">
<td>{{pos15}}</td>
<td>
<a style="color:#{{v.name_color}};font-weight:bold" href="/@{{v.username}}">
<div class="profile-pic-20-wrapper">
<img loading="lazy" src="{{v.profile_url}}" class="pp20">
{% if v.hat_active -%}
<img class="profile-pic-20-hat hat" loading="lazy" src="/i/hats/{{v.hat_active}}?v=3" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{v.hat_tooltip(v)}}">
{%- endif %}
</div>
<span {% if v.patron %}class="patron" style="background-color:#{{v.name_color}}"{% endif %}>{{v.username}}</span>
</a>
{% with user=v %}
{% include "user_in_table.html" %}
{% endwith %}
</td>
<td>{{v.winnings}}</td>
</tr>
@ -684,17 +491,7 @@
{% for user,num in users16 %}
<tr {% if v.id == user.id %}class="self"{% endif %}>
<td>{{loop.index}}</td>
<td>
<a style="color:#{{user.name_color}};font-weight:bold" href="/@{{user.username}}">
<div class="profile-pic-20-wrapper">
<img loading="lazy" src="{{user.profile_url}}" class="pp20">
{% if user.hat_active -%}
<img class="profile-pic-20-hat hat" loading="lazy" src="/i/hats/{{user.hat_active}}?v=3" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{user.hat_tooltip(v)}}">
{%- endif %}
</div>
<span {% if user.patron %}class="patron" style="background-color:#{{user.name_color}}"{% endif %}>{{user.username}}</span>
</a>
</td>
<td>{% include "user_in_table.html" %}</td>
<td>{{num}}</td>
</tr>
{% endfor %}
@ -713,17 +510,7 @@
{% for user,num in users17 %}
<tr {% if v.id == user.id %}class="self"{% endif %}>
<td>{{loop.index}}</td>
<td>
<a style="color:#{{user.name_color}};font-weight:bold" href="/@{{user.username}}">
<div class="profile-pic-20-wrapper">
<img loading="lazy" src="{{user.profile_url}}" class="pp20">
{% if user.hat_active -%}
<img class="profile-pic-20-hat hat" loading="lazy" src="/i/hats/{{user.hat_active}}?v=3" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{user.hat_tooltip(v)}}">
{%- endif %}
</div>
<span {% if user.patron %}class="patron" style="background-color:#{{user.name_color}}"{% endif %}>{{user.username}}</span>
</a>
</td>
<td>{% include "user_in_table.html" %}</td>
<td>{{num}}</td>
</tr>
{% endfor %}

View File

@ -12,7 +12,7 @@
{% for user in users %}
<tr>
<td>{{loop.index}}</td>
<td><a style="color:#{{user.name_color}}" href="/@{{user.username}}"><img loading="lazy" src="{{user.profile_url}}" class="pp20"><span {% if user.patron %}class="patron" style="background-color:#{{user.name_color}}"{% endif %}>{{user.username}}</span></a></td>
<td>{% include "user_in_table.html" %}</td>
<td>{{user.truecoins}}</td>
</tr>
{% endfor %}

View File

@ -16,14 +16,14 @@
</thead>
<tbody id="marseys-table">
{% if SITE == 'rdrama.net' %}
{% for marsey, author in marseys %}
{% for marsey, user in marseys %}
<tr>
<td>{{loop.index}}</td>
<td>{{marsey.name}}</td>
<td><img class="marsey" loading="lazy" data-bs-toggle="tooltip" alt=":#{{marsey.name}}:" title=":{{marsey.name}}:" src="/e/{{marsey.name}}.webp"></td>
<td>{{marsey.count}}</td>
{% if SITE == 'rdrama.net' %}
<td><a style="color:#{{author.name_color}};font-weight:bold" href="/@{{author.username}}"><img loading="lazy" src="{{author.profile_url}}" class="pp20"><span {% if author.patron %}class="patron" style="background-color:#{{author.name_color}}"{% endif %}>{{author.username}}</span></a></td>
<td>{% include "user_in_table.html" %}</td>
{% endif %}
</tr>
{% endfor %}

View File

@ -9,12 +9,12 @@
<th>Tier</th>
</tr>
</thead>
{% for u in users %}
{% for user in users %}
<tr>
<td>{{loop.index}}</td>
<td><a style="color:#{{u.name_color}}" href="/@{{u.username}}"><img loading="lazy" src="{{u.profile_url}}" class="pp20"><span {% if u.patron %}class="patron" style="background-color:#{{u.name_color}}"{% endif %}>{{u.username}}</span></a></td>
<td>{% include "user_in_table.html" %}</td>
<td>
<img class="contain" alt="2{{u.patron}}" loading="lazy" width=29.33 height=32 src="/i/{{SITE_NAME}}/patron_badges/2{{u.patron}}.webp?v=1">
<img class="contain" alt="2{{user.patron}}" loading="lazy" width=29.33 height=32 src="/i/{{SITE_NAME}}/patron_badges/2{{user.patron}}.webp?v=1">
</td>
</tr>
{% endfor %}

View File

@ -27,12 +27,9 @@
{% for vote in ups %}
<tr>
<td>
<a style="color:#{{vote.user.name_color}};font-weight:bold" href="/@{{vote.user.username}}">
<img loading="lazy" src="{{vote.user.profile_url}}" class="pp20">
<span {% if vote.user.patron %}class="patron" style="background-color:#{{vote.user.name_color}}"{% endif %} data-user-id="{{vote.user.id}}">
{{vote.user.username}}
</span>
</a>
{% with user=vote.user %}
{% include "user_in_table.html" %}
{% endwith %}
</td>
<td>{{vote.user.truecoins}}</td>
<td data-time="{{vote.created_utc}}"></td>

View File

@ -17,7 +17,7 @@
{% for user in users %}
<tr>
<td>{{loop.index}}</td>
<td><a style="color:#{{user.name_color}}" href="/@{{user.username}}"><img loading="lazy" src="{{user.profile_url}}" class="pp20"><span {% if user.patron %}class="patron" style="background-color:#{{user.name_color}}"{% endif %}>{{user.username}}</span></a></td>
<td>{% include "user_in_table.html" %}</td>
</tr>
{% endfor %}
</tbody>

View File

@ -14,7 +14,7 @@
{% for user in users %}
<tr>
<td>{{loop.index}}</td>
<td><a style="color:#{{user.name_color}}" href="/@{{user.username}}"><img loading="lazy" src="{{user.profile_url}}" class="pp20"><span {% if user.patron %}class="patron" style="background-color:#{{user.name_color}}"{% endif %}>{{user.username}}</span></a></td>
<td>{% include "user_in_table.html" %}</td>
<td>{{user.shadowbanned}}</td>
</tr>
{% endfor %}

View File

@ -16,7 +16,7 @@
{% for user in users %}
<tr>
<td>{{loop.index}}</td>
<td><a style="color:#{{user.name_color}}" href="/@{{user.username}}"><img loading="lazy" src="{{user.profile_url}}" class="pp20"><span {% if user.patron %}class="patron" style="background-color:#{{user.name_color}}"{% endif %}>{{user.username}}</span></a></td>
<td>{% include "user_in_table.html" %}</td>
</tr>
{% endfor %}
</table>

View File

@ -17,10 +17,13 @@
</thead>
{% for user, exile in users %}
<tr>
{% set exiler=exile.exiler %}
<td>{{loop.index}}</td>
<td><a style="color:#{{user.name_color}}" href="/@{{user.username}}"><img loading="lazy" src="{{user.profile_url}}" class="pp20"><span {% if user.patron %}class="patron" style="background-color:#{{user.name_color}}"{% endif %}>{{user.username}}</span></a></td>
<td><a style="color:#{{exiler.name_color}}" href="/@{{exiler.username}}"><img loading="lazy" src="{{exiler.profile_url}}" class="pp20"><span {% if exiler.patron %}class="patron" style="background-color:#{{exiler.name_color}}"{% endif %}>{{exiler.username}}</span></a></td>
<td>{% include "user_in_table.html" %}</td>
<td>
{% with user=exile.exiler %}
{% include "user_in_table.html" %}
{% endwith %}
</td>
<td>
{% if v.mods(sub.name) %}
<form action="/h/{{sub.name}}/unexile/{{user.id}}" method="post">

View File

@ -18,7 +18,7 @@
{% for user, mod in users %}
<tr>
<td>{{loop.index}}</td>
<td><a style="color:#{{user.name_color}}" href="/@{{user.username}}"><img loading="lazy" src="{{user.profile_url}}" class="pp20"><span {% if user.patron %}class="patron" style="background-color:#{{user.name_color}}"{% endif %}>{{user.username}}</span></a></td>
<td>{% include "user_in_table.html" %}</td>
<td data-time="{{mod.created_utc}}"></td>
<td>
{% if v.id == user.id or v.mod_date(sub.name) and v.mod_date(sub.name) < mod.created_utc %}

View File

@ -16,7 +16,7 @@
{% for user in users %}
<tr>
<td>{{loop.index}}</td>
<td><a style="color:#{{user.name_color}}" href="/@{{user.username}}"><img loading="lazy" src="{{user.profile_url}}" class="pp20"><span {% if user.patron %}class="patron" style="background-color:#{{user.name_color}}"{% endif %}>{{user.username}}</span></a></td>
<td>{% include "user_in_table.html" %}</td>
</tr>
{% endfor %}
</table>

View File

@ -0,0 +1,9 @@
<a style="color:#{{user.name_color}};font-weight:bold" href="/@{{user.username}}">
<div class="profile-pic-20-wrapper">
<img loading="lazy" src="{{user.profile_url}}" class="pp20">
{% if user.hat_active -%}
<img class="profile-pic-20-hat hat" loading="lazy" src="/i/hats/{{user.hat_active}}?v=3" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{user.hat_tooltip(v)}}">
{%- endif %}
</div>
<span {% if user.patron %}class="patron" style="background-color:#{{user.name_color}}"{% endif %}>{{user.username}}</span>
</a>

View File

@ -12,7 +12,11 @@
</thead>
{% for view in viewers %}
<tr>
<td><a style="color: #{{view.viewer.name_color}}" href="/@{{view.viewer.username}}"><img loading="lazy" src="{{view.viewer.profile_url}}" class="pp20"><span {% if view.viewer.patron %}class="patron" style="background-color:#{{view.viewer.name_color}}"{% endif %}>{{view.viewer.username}}</span></a></td>
<td>
{% with user=view.viewer %}
{% include "user_in_table.html" %}
{% endwith %}
</td>
<td>{{view.last_view_string}}</td>
</tr>
{% endfor %}

View File

@ -16,17 +16,21 @@
</tr>
</thead>
<tbody id="followers-table">
{% for user in users %}
<tr {% if v.id == user[0].id %}class="self"{% endif %}>
{% for user, num in users %}
<tr {% if v.id == user.id %}class="self"{% endif %}>
<td>{{loop.index}}</td>
<td><a style="color:#{{user[0].name_color}}" href="/@{{user[0].username}}"><img loading="lazy" src="{{user[0].profile_url}}" class="pp20"><span {% if user[0].patron %}class="patron" style="background-color:#{{user[0].name_color}}"{% endif %}>{{user[0].username}}</span></a></td>
<td><a href="{{request.path}}/{{user[0].id}}/posts">{{user[1]}}</a></td>
<td>{% include "user_in_table.html" %}</td>
<td><a href="{{request.path}}/{{user[0].id}}/posts">{{num}}</a></td>
</tr>
{% endfor %}
{% if pos and (pos[0] > 25 or not pos[1]) %}
<tr style="border-top:2px solid var(--primary)">
<td>{{pos[0]}}</td>
<td><a style="color:#{{v.name_color}};font-weight:bold" href="/@{{v.username}}"><img loading="lazy" src="{{v.profile_url}}" class="pp20"><span {% if v.patron %}class="patron" style="background-color:#{{v.name_color}}"{% endif %}>{{v.username}}</span></a></td>
<td>
{% with user=v %}
{% include "user_in_table.html" %}
{% endwith %}
</td>
<td><a href="{{request.path}}/{{v.id}}/posts">{{pos[1]}}</a></td>
</tr>
{% endif %}

View File

@ -39,17 +39,9 @@
{% for vote in ups %}
<tr>
<td>
<a style="color:#{{vote.user.name_color}};font-weight:bold" href="/@{{vote.user.username}}">
<div class="profile-pic-20-wrapper">
<img loading="lazy" src="{{vote.user.profile_url}}" class="pp20">
{% if vote.user.hat_active -%}
<img class="profile-pic-20-hat hat" loading="lazy" src="/i/hats/{{vote.user.hat_active}}?v=3" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{vote.user.hat_tooltip(v)}}">
{%- endif %}
</div>
<span {% if vote.user.patron %}class="patron" style="background-color:#{{vote.user.name_color}}"{% endif %} data-user-id="{{vote.user.id}}">
{{vote.user.username}}
</span>
</a>
{% with user=vote.user %}
{% include "user_in_table.html" %}
{% endwith %}
</td>
<td>{{vote.user.truecoins}}</td>
<td data-time="{{vote.created_utc}}"></td>
@ -72,17 +64,9 @@
{% for vote in downs %}
<tr>
<td>
<a style="color:#{{vote.user.name_color}};font-weight:bold" href="/@{{vote.user.username}}">
<div class="profile-pic-20-wrapper">
<img loading="lazy" src="{{vote.user.profile_url}}" class="pp20">
{% if vote.user.hat_active -%}
<img class="profile-pic-20-hat hat" loading="lazy" src="/i/hats/{{vote.user.hat_active}}?v=3" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{vote.user.hat_tooltip(v)}}">
{%- endif %}
</div>
<span {% if vote.user.patron %}class="patron" style="background-color:#{{vote.user.name_color}}"{% endif %} data-user-id="{{vote.user.id}}">
{{vote.user.username}}
</span>
</a>
{% with user=vote.user %}
{% include "user_in_table.html" %}
{% endwith %}
</td>
<td>{{vote.user.truecoins}}</td>
<td data-time="{{vote.created_utc}}"></td>