fix /marseys in offsites

remotes/1693045480750635534/spooky-22
Aevann1 2022-08-30 04:13:59 +02:00
parent 5c2d1997db
commit a48fb3cd09
1 changed files with 24 additions and 12 deletions

View File

@ -14,18 +14,30 @@
{% if SITE in ('rdrama.net','devrama.xyz') %}<th><a href="?sort=author">Author</a></th>{% endif %}
</tr>
</thead>
<tbody id="followers-table">
{% for marsey, author 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 in ('rdrama.net','devrama.xyz') %}
<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>
{% endif %}
</tr>
{% endfor %}
<tbody id="marseys-table">
{% if SITE in ('rdrama.net','devrama.xyz') %}
{% for marsey, author 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 in ('rdrama.net','devrama.xyz') %}
<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>
{% endif %}
</tr>
{% endfor %}
{% else %}
{% for marsey 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>
</tr>
{% endfor %}
{% endif %}
</tbody>
</table>