MarseyWorld/files/templates/emojis.html

72 lines
3.0 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 %}
2024-02-05 04:14:34 +00:00
<a class="dropdown-item" href="/emojis/{{kind.lower()}}"><img loading="lazy" src="{{SITE_FULL_IMAGES}}/e/{{kind.lower()}}.webp" alt=":{{kind.lower()}}:" class="mr-2">{{kind}}</a>
2023-10-24 19:04:40 +00:00
{% 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">
2024-02-12 14:21:51 +00:00
<table class="datatable d-none">
<thead>
2023-10-24 19:04:40 +00:00
<tr>
<th class="disable-sort-click">#</th>
<th class="disable-sort-click">Name</th>
<th class="disable-sort-click">Emoji</th>
<th class="disable-sort-click">Usage</th>
<th class="disable-sort-click">Author</th>
<th class="disable-sort-click">Added on</th>
2023-10-24 19:04:40 +00:00
{% if FEATURES['EMOJI_SUBMISSIONS'] %}
<th class="disable-sort-click">Original File</th>
{% endif %}
<th class="disable-sort-click">Tags</th>
2023-10-24 19:04:40 +00:00
</tr>
</thead>
2024-02-01 18:24:15 +00:00
<tbody>
2023-10-24 19:04:40 +00:00
{% for emoji in emojis %}
2023-10-29 12:51:00 +00:00
<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-24 19:04:40 +00:00
<td>
2023-10-29 12:51:00 +00:00
{% if emoji.author_id == 2 %}
2023-11-06 14:25:49 +00:00
a{% if OTHER_SITE_NAME == 'rDrama' %}n{% endif %} {{OTHER_SITE_NAME}} user
2023-10-29 12:51:00 +00:00
{% else %}
{% set user = emoji.user %}
{% include "user_in_table.html" %}
2023-10-24 19:04:40 +00:00
{% endif %}
</td>
<td data-sort="{{emoji.created_utc}}" {% if emoji.created_utc %}data-time="{{emoji.created_utc}}"{% endif %}></td>
2023-10-29 12:51:00 +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 %}
2024-01-31 21:08:34 +00:00
<td>{{emoji.tags}}</td>
2023-10-29 12:51:00 +00:00
</tr>
2023-10-24 19:04:40 +00:00
{% endfor %}
</tbody>
</table>
</div>
2024-02-01 18:24:15 +00:00
<link rel="stylesheet" href="{{('css/datatables.css') | asset}}">
<script defer src="{{'js/vendor/jquery.js' | asset}}"></script>
<script defer src="{{'js/vendor/datatables.js' | asset}}"></script>
2022-10-27 15:43:48 +00:00
{% endblock %}