MarseyWorld/files/templates/emojis.html

70 lines
2.7 KiB
HTML
Raw Normal View History

2022-01-12 02:42:26 +00:00
{% extends "default.html" %}
2023-07-04 21:40:00 +00:00
{% block pagetitle %}Emojis{% endblock %}
{% block pagetype %}emojis{% endblock %}
2022-01-12 02:42:26 +00:00
{% block content %}
2023-10-24 19:04:40 +00:00
<a class="btn btn-primary btn-block mt-3" href="/assets/emojis.zip?x={{emojis_hash}}"><i class="fas fa-down mr-2"></i>Download All Emojis</a>
2023-08-05 13:52:53 +00:00
2023-10-24 19:04:40 +00:00
<a class="btn btn-primary btn-block mt-3" href="/assets/emojis_original.zip?x={{emojis_hash}}"><i class="fas fa-down mr-2"></i>Download All Original Files</a>
2023-08-05 13:52:53 +00:00
2023-10-24 19:04:40 +00:00
<div class="d-flex align-items-center my-4">
<div class="dropdown dropdown-actions mx-auto">
<button type="button" class="btn btn-secondary dropdown-toggle" id="dropdownMenuButton" data-bs-toggle="dropdown" data-bs-display="static" style="width:min(95vw, 900px)">
<img loading="lazy" src="{{SITE_FULL_IMAGES}}/e/{{kind.lower()}}.webp" alt=":{{kind.lower()}}:" class="mr-2">{{kind}}
</button>
<div class="dropdown-menu" x-placement="bottom-start" style="position: absolute; will-change: transform; top: 0px; left: 0px; transform: translate3d(0px, 31px, 0px); max-height: 50vh;overflow: auto;width:min(95vw, 900px)">
{% for kind in EMOJI_KINDS %}
<a class="dropdown-item" href="/emojis/{{kind}}"><img loading="lazy" src="{{SITE_FULL_IMAGES}}/e/{{kind.lower()}}.webp" alt=":{{kind.lower()}}:" class="mr-2">{{kind}}</a>
{% endfor %}
</div>
2023-08-05 11:13:59 +00:00
</div>
</div>
2022-12-10 10:40:34 +00:00
2023-10-24 19:04:40 +00:00
<div class="overflow-x-auto mt-3">
<table class="table table-striped mb-5">
<thead class="bg-primary text-white">
<tr>
<th>#</th>
<th>Name</th>
<th>Emoji</th>
<th>Usage</th>
2023-10-26 15:44:23 +00:00
<th>Author</th>
2023-10-24 19:04:40 +00:00
<th>Added on</th>
{% if FEATURES['EMOJI_SUBMISSIONS'] %}
<th class="disable-sort-click">Original File</th>
{% endif %}
</tr>
</thead>
<tbody id="emojis-table">
{% for emoji in emojis %}
<tr>
<td>{{loop.index}}</td>
<td>{{emoji.name}}</td>
<td><img class="emoji" loading="lazy" data-bs-toggle="tooltip" alt=":#{{emoji.name}}:" title=":{{emoji.name}}:" src="{{SITE_FULL_IMAGES}}/e/{{emoji.name}}.webp"></td>
<td>{{emoji.count}}</td>
2023-10-26 15:44:23 +00:00
<td>
{% if emoji.author_id == 2 %}
{% if SITE == 'rdrama.net' %}
a WPD user
2023-10-24 19:04:40 +00:00
{% else %}
2023-10-26 15:44:23 +00:00
an rDrama user
2023-10-24 19:04:40 +00:00
{% endif %}
2023-10-26 15:44:23 +00:00
{% else %}
{% set user = emoji.user %}
{% include "user_in_table.html" %}
{% endif %}
</td>
2023-10-26 20:47:38 +00:00
<td data-sort-key="{{emoji.created_utc}}" {% if emoji.created_utc %}data-time="{{emoji.created_utc}}"{% endif %}></td>
2023-10-24 19:04:40 +00:00
{% if FEATURES['EMOJI_SUBMISSIONS'] %}
<td>
{% if emoji.og %}
<a href="{{SITE_FULL_IMAGES}}/asset_submissions/emojis/original/{{emoji.og}}">{{emoji.og}}</a>
{% endif %}
</td>
{% endif %}
</tr>
{% endfor %}
</tbody>
</table>
</div>
2022-10-27 15:43:48 +00:00
{% endblock %}