rDrama/files/templates/marseys.html

53 lines
1.9 KiB
HTML
Raw Normal View History

2022-01-12 02:42:26 +00:00
{% extends "default.html" %}
{% block content %}
2022-01-02 20:20:13 +00:00
<pre>
</pre>
2022-01-03 10:59:29 +00:00
<div class="overflow-x-auto"><table class="table table-striped mb-5">
2022-01-02 20:20:13 +00:00
<thead class="bg-primary text-white">
<tr>
<th style="font-weight: bold">#</th>
<th style="font-weight: bold">Name</th>
<th style="font-weight: bold">Marsey</th>
2022-01-12 01:46:16 +00:00
<th style="font-weight: bold">Usage</th>
2022-01-28 02:04:53 +00:00
{% if request.host == 'rdrama.net' %}<th style="font-weight: bold">Author</th>{% endif %}
2022-01-02 20:20:13 +00:00
</tr>
</thead>
<tbody id="followers-table">
2022-01-28 02:04:53 +00:00
{% if request.host == 'rdrama.net' %}
{% for marsey, author in marseys %}
<tr>
<td style="font-weight: bold">{{loop.index}}</td>
<td style="font-weight: bold">{{marsey.name}}</td>
<td><img class="marsey" loading="lazy" data-bs-toggle="tooltip" alt=":{{marsey.name}}:" title=":{{marsey.name}}:" delay="0" src="/static/assets/images/emojis/{{marsey.name}}.webp?a=1008" ></td>
<td style="font-weight: bold">{{marsey.count}}</td>
<td><a style="color:#{{author.namecolor}};font-weight:bold" href="/@{{author.username}}"><img alt="@{{author.username}}'s profile picture" loading="lazy" src="{{author.profile_url}}" class="pp20"><span {% if author.patron %}class="patron" style="background-color:#{{author.namecolor}}"{% endif %}>{{author.username}}</span></a></td>
</tr>
{% endfor %}
{% else %}
{% for marsey in marseys %}
2022-01-12 02:42:26 +00:00
<tr>
2022-01-12 03:16:49 +00:00
<td style="font-weight: bold">{{loop.index}}</td>
2022-01-23 23:06:34 +00:00
<td style="font-weight: bold">{{marsey.name}}</td>
2022-01-23 23:55:52 +00:00
<td><img class="marsey" loading="lazy" data-bs-toggle="tooltip" alt=":{{marsey.name}}:" title=":{{marsey.name}}:" delay="0" src="/static/assets/images/emojis/{{marsey.name}}.webp?a=1008" ></td>
2022-01-23 23:06:34 +00:00
<td style="font-weight: bold">{{marsey.count}}</td>
2022-01-12 02:42:26 +00:00
</tr>
2022-01-28 02:04:53 +00:00
{% endfor %}
{% endif %}
2022-01-02 20:20:13 +00:00
</tbody>
2022-01-12 02:42:26 +00:00
</table>
2022-01-12 03:16:49 +00:00
2022-01-12 04:36:00 +00:00
<style>
.marsey {
max-width: 125px;
max-height: 125px;
}
2022-01-12 04:37:24 +00:00
@media (max-width: 768px) {
.marsey {
max-width: 60px;
max-height: 60px;
}
}
2022-01-12 04:36:00 +00:00
</style>
2022-01-12 02:42:26 +00:00
{% endblock %}