MarseyWorld/files/templates/log.html

82 lines
2.7 KiB
HTML
Raw Normal View History

2021-07-26 00:47:27 +00:00
{% extends "settings2.html" %}
2021-07-21 01:12:26 +00:00
{% block pagetitle %}Moderation Log{% endblock %}
{% block stylesheets %}
{% if v %}
<link rel="stylesheet" href="/assets/style/{{v.theme}}_{{v.themecolor}}.css">
{% if v.agendaposter %}<link rel="stylesheet" href="/assets/style/agendaposter.css">{% elif v.css %}<link rel="stylesheet" href="/@{{v.username}}/css">{% endif %}
{% else %}
2021-08-19 05:34:39 +00:00
<link rel="stylesheet" href="/assets/style/{{'DEFAULT_THEME' | app_config}}.css">
2021-07-21 01:12:26 +00:00
{% endif %}
{% endblock %}
{% block content %}
<div class="row justify-content-around">
<div class="col h-100">
<div class="d-md-flex justify-content-between mb-3">
<div>
<h5>Moderation Log</h5>
</div>
</div>
<div class="rounded border bg-white mx-auto">
{% for ma in actions %}
2021-07-30 05:31:38 +00:00
<div id="action-{{ma.id}}" class="position-relative d-flex justify-content-between flex-wrap align-items-center h-min-16 px-3 py-3 mb-3 mb-md-2 bg-white{% if loop.index > 1 %} border-top{% endif %}">
2021-07-21 01:12:26 +00:00
2021-08-15 01:03:29 +00:00
<div class="d-flex flex-grow-1 align-items-center">
2021-07-21 01:12:26 +00:00
<div class="d-flex align-items-center justify-content-center {{ma.color}} mr-3 rounded-lg flex-shrink-0" style="width: 32px;height: 32px;"><i class="far text-center {{ma.icon}} text-lg text-white fa-fw"></i></div>
<div class="d-flex align-items-center">
<span class="rounded">
2021-09-03 14:08:32 +00:00
<img loading="lazy" src="{{ma.user.profile_url}}" alt="avatar" style="width: 42px;height: 42px;" class="rounded-circle">
2021-08-15 01:03:29 +00:00
</span>
<div class="text-muted pl-3">
2021-07-21 01:12:26 +00:00
<div>
2021-07-27 00:05:58 +00:00
<a href="{{ma.user.url}}" class="font-weight-bold text-black" target="_self">@{{ma.user.username}}</a>
2021-07-21 01:12:26 +00:00
2021-08-15 01:03:29 +00:00
<span>{{ma.string | safe}}</span>
</div>
2021-07-21 01:12:26 +00:00
2021-08-15 01:03:29 +00:00
<div class="text-gray-500">{{ma.age_string}} <a href="{{ma.permalink}}"><i class="far fa-link ml-1 text-muted"></i></a> <a href="javascript:void(0)" class="copy-link" role="button"data-clipboard-text="{{ma.permalink | full_link}}"><i class="far fa-copy ml-1 text-muted"></i></a></div>
2021-07-21 01:12:26 +00:00
2021-08-15 01:03:29 +00:00
</div>
</div>
</div>
2021-07-21 01:12:26 +00:00
</div>
{% else %}
<div>There's nothing here right now.</div>
{% endfor %}
</div>
<nav aria-label="Page navigation" class="mb-5">
<ul class="pagination pagination-sm mb-0">
{% if page>1 %}
<li class="page-item">
<small><a class="page-link" href="?page={{page-1}}" tabindex="-1">Prev</a></small>
</li>
{% else %}
<li class="page-item disabled"><span class="page-link">Prev</span></li>
{% endif %}
{% if next_exists %}
<li class="page-item">
<small><a class="page-link" href="?page={{page+1}}">Next</a></small>
</li>
{% else %}
<li class="page-item disabled"><span class="page-link">Next</span></li>
{% endif %}
</ul>
</nav>
</div>
</div>
{% endblock %}