MarseyWorld/files/templates/admin/dm_media.html

64 lines
1.5 KiB
HTML
Raw Normal View History

2023-01-27 12:24:39 +00:00
{% extends "default.html" %}
{% block pagetitle %}DM Media{% endblock %}
2023-01-27 12:24:39 +00:00
{% block content %}
2023-10-29 12:51:00 +00:00
<h2>DM Media</h2>
<div class="overflow-x-auto">
<table>
<thead>
2023-10-29 12:51:00 +00:00
<tr>
<th>Image</th>
<th>Sender</th>
<th>Sent To</th>
<th>At</th>
</tr>
</thead>
2023-01-27 12:24:39 +00:00
2023-10-29 12:51:00 +00:00
{% for item in items %}
<tr>
<td>
{% set url=item[0] %}
{% if url.endswith('.webp') %}
<img alt="{{url}}" src="{{url}}" loading="lazy" class="dm_img" data-nonce="{{g.nonce}}" data-onclick="expandImage()">
{% elif url.endswith('.mp4') %}
<p class="resizable">
<video controls preload="none" src="{{url}}"></video>
</p>
{% elif url.endswith('.mp3') %}
<audio controls preload="none" src="{{url}}"></audio>
2023-01-28 08:47:52 +00:00
{% else %}
2023-10-29 12:51:00 +00:00
<a href="{{url}}">
{{url}}
2023-01-28 08:47:52 +00:00
</a>
{% endif %}
2023-10-29 12:51:00 +00:00
</td>
<td>
{% if item[1] != "Unknown" %}
<a href="/id/{{item[2]}}">
<img loading="lazy" src="/pp/{{item[2]}}">
@{{item[1]}}
</a>
{% endif %}
</td>
<td>
{% if item[1] != "Unknown" %}
{% if item[3] == "Modmail" %}
Modmail
{% else %}
<a href="/id/{{item[4]}}">
<img loading="lazy" src="/pp/{{item[4]}}">
@{{item[3]}}
</a>
{% endif %}
{% endif %}
</td>
<td {% if item[5] %}data-time="{{item[5]}}"{% endif %}></td>
</tr>
{% endfor %}
</table>
</div>
2023-01-27 12:24:39 +00:00
{% endblock %}
2023-02-22 14:36:52 +00:00
{% block pagenav %}
2023-10-29 12:51:00 +00:00
{% include "pagination.html" %}
2023-02-22 14:36:52 +00:00
{% endblock %}