rDrama/files/templates/log.html

147 lines
6.1 KiB
HTML
Raw Normal View History

2021-10-15 14:08:27 +00:00
{% extends "settings2.html" %}
{% block pagetitle %}Moderation Log{% endblock %}
{% block content %}
{% if v %}
<style>:root{--primary:#{{v.themecolor}}}</style>
2022-01-09 15:15:02 +00:00
<link rel="stylesheet" href="/static/assets/css/main.css?a=68"><link rel="stylesheet" href="/static/assets/css/{{v.theme}}.css?a=11">
2021-12-28 19:42:05 +00:00
{% if v.agendaposter %}
<style>
html {
cursor:url('https://i.ibb.co/4VZB08S/Image.webp'), auto;
}
.nav-item .text-small.font-weight-bold::before {
content: "((("
}
.nav-item .text-small.font-weight-bold::after {
content: ")))"
}
.nav-item .text-small-extra.text-primary {
font-size: 0 !important
}
.nav-item .text-small-extra.text-primary i {
font-size: 11px !important
}
</style>
{% elif v.css %}
<link rel="stylesheet" href="/@{{v.username}}/css">
{% endif %}
2021-10-15 14:08:27 +00:00
{% else %}
<style>:root{--primary:#{{'DEFAULT_COLOR' | app_config}}</style>
2022-01-09 15:15:02 +00:00
<link rel="stylesheet" href="/static/assets/css/main.css?a=68"><link rel="stylesheet" href="/static/assets/css/{{'DEFAULT_THEME' | app_config}}.css?a=3">
2021-10-15 14:08:27 +00:00
{% endif %}
<div class="row justify-content-around">
<div class="col h-100">
2021-11-23 00:44:05 +00:00
<div class="d-md-flex justify-content-between mt-4">
2021-11-23 00:42:03 +00:00
<div>
2021-10-15 14:08:27 +00:00
<h5>Moderation Log</h5>
</div>
</div>
2021-11-23 00:04:13 +00:00
<div class="row" style="overflow: visible;padding-top:5px;">
<div class="col">
<div class="d-flex justify-content-between align-items-center mr-2">
{% block navbar %}
<div class="font-weight-bold py-3">‎</div>
<div class="d-flex align-items-center sortingbarmargin">
<div class="text-small font-weight-bold mr-2">‎</div>
<div class="dropdown dropdown-actions">
2021-12-30 05:27:22 +00:00
<button class="btn btn-secondary dropdown-toggle" role="button" id="dropdownMenuButton" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
2021-12-24 23:00:09 +00:00
{% if admin %}<img src="/@{{admin}}/pic" alt="avatar" width=20 height=20 class="rounded-circle mr-2">{{admin}}{% else %}<img src="/static/assets/images/emojis/marseyjanny.webp" alt="avatar" width=20 height=20 class="rounded-circle mr-2">All{% endif %}
2021-11-23 00:04:13 +00:00
</button>
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton" x-placement="bottom-start" style="position: absolute; will-change: transform; top: 0px; left: 0px; transform: translate3d(0px, 31px, 0px);">
2021-12-24 23:00:09 +00:00
<a class="dropdown-item" href="/log{% if type %}?kind={{type}}{% endif %}"><img src="/static/assets/images/emojis/marseyjanny.webp" alt="avatar" width=20 height=20 class="rounded-circle mr-2">All</a>
2021-11-23 00:04:13 +00:00
{% for a in admins %}
2021-11-23 00:34:58 +00:00
<a class="dropdown-item" href="?admin={{a}}{% if type %}&kind={{type}}{% endif %}"><img src="/@{{a}}/pic" alt="avatar" width=20 height=20 class="rounded-circle mr-2">{{a}}</a>
2021-11-23 00:04:13 +00:00
{% endfor %}
</div>
</div>
<div class="text-small font-weight-bold mr-2">‎</div>
<div class="dropdown dropdown-actions">
2021-12-30 05:27:22 +00:00
<button class="btn btn-secondary dropdown-toggle" role="button" id="dropdownMenuButton2" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
2021-11-23 00:04:13 +00:00
{% if type %}<i class="fas {{types[type]['icon']}} mr-2"></i>{{type}}{% else %}<i class="fas fa-broom mr-2"></i>All{% endif %}
</button>
2021-12-11 17:26:23 +00:00
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton2s" x-placement="bottom-start" style="position: absolute; will-change: transform; top: 0px; left: 0px; transform: translate3d(0px, 31px, 0px);">
2021-11-23 00:04:13 +00:00
<a class="dropdown-item" href="/log{% if admin %}?admin={{admin}}{% endif %}"><i class="fas fa-broom mr-2"></i>All</a>
2021-11-23 21:16:29 +00:00
{% for t, v in types.items() %}
<a class="dropdown-item" href="?{% if admin %}admin={{admin}}&{% endif %}kind={{t}}"><i class="fas {{v['icon']}} mr-2"></i>{{t}}</a>
{% endfor %}
2021-11-23 00:04:13 +00:00
</div>
</div>
</div>
{% endblock %}
</div>
</div>
</div>
2021-10-15 14:08:27 +00:00
<div class="rounded border bg-white mx-auto">
{% for ma in actions %}
<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 %}">
<div class="d-flex flex-grow-1 align-items-center">
<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-11-23 00:34:58 +00:00
<img src="{{ma.user.profile_url}}" alt="avatar" width=42 height=42 class="rounded-circle">
2021-10-15 14:08:27 +00:00
</span>
<div class="text-muted pl-3">
<div>
<a href="{{ma.user.url}}" class="font-weight-bold text-black" target="_self">@{{ma.user.username}}</a>
<span>{{ma.string | safe}}</span>
</div>
<div class="text-gray-500">{{ma.age_string}} <a href="{{ma.permalink}}"><i class="far fa-link ml-1 text-muted"></i></a>
2021-12-30 05:27:22 +00:00
<a role="button" class="copy-link" role="button"data-clipboard-text="{{ma.permalink | full_link}}"><i class="far fa-copy ml-1 text-muted"></i></a>
2021-10-15 14:08:27 +00:00
</div>
</div>
</div>
</div>
</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">
2021-12-29 06:43:20 +00:00
<small><a class="page-link" href="/log?page={{page-1}}{% if admin %}&admin={{admin}}{% endif %}{% if type %}&kind={{type}}{% endif %}" tabindex="-1">Prev</a></small>
2021-10-15 14:08:27 +00:00
</li>
{% else %}
<li class="page-item disabled"><span class="page-link">Prev</span></li>
{% endif %}
{% if next_exists %}
<li class="page-item">
2021-11-23 20:05:35 +00:00
<small><a class="page-link" href="/log?page={{page+1}}{% if admin %}&admin={{admin}}{% endif %}{% if type %}&kind={{type}}{% endif %}">Next</a></small>
2021-10-15 14:08:27 +00:00
</li>
{% else %}
<li class="page-item disabled"><span class="page-link">Next</span></li>
{% endif %}
</ul>
</nav>
</div>
</div>
2021-11-30 17:32:46 +00:00
2021-12-24 23:00:09 +00:00
<script src="/static/assets/js/clipboard.js?a=3"></script>
2021-11-30 17:32:46 +00:00
2021-07-21 01:12:26 +00:00
{% endblock %}