2023-09-08 17:07:38 +00:00
{% extends "settings2.html" %}
2022-05-04 23:09:46 +00:00
{% block pagetitle %}Moderation Log{% endblock %}
{% block content %}
2023-10-29 12:51:00 +00:00
< div class = "row justify-content-around" >
< div class = "col h-100" >
< div class = "justify-content-between" >
< div >
< h5 class = "font-weight-bolder text-center pt-2 pb-3" > {% if hole %}< a href = "/h/{{hole.name}}" > /h/{{hole.name}}< / a > {% endif %}< span > Moderation Log< / span > < / h5 >
< / div >
2022-05-04 23:09:46 +00:00
< / div >
2023-10-29 12:51:00 +00:00
< div class = "row" style = "overflow: visible;padding-top:5px" >
< div class = "col" >
< div class = "d-flex justify-content-between align-items-center" >
2023-01-01 11:36:20 +00:00
2023-10-29 12:51:00 +00:00
{% block navbar %}
< div class = "d-flex align-items-center mb-3 ml-auto" >
< div class = "dropdown dropdown-actions" >
2022-05-04 23:09:46 +00:00
2023-10-29 12:51:00 +00:00
< button type = "button" class = "btn btn-secondary dropdown-toggle" id = "dropdownMenuButton" data-bs-toggle = "dropdown" >
{% if admin %}< img loading = "lazy" src = "/@{{admin}}/pic" alt = "avatar" class = "profile-pic-20 mr-2" > {{admin}}{% else %}< img loading = "lazy" src = "{{SITE_FULL_IMAGES}}/e/marseyjanny.webp" alt = "avatar" class = "profile-pic-20 mr-2" > All{% endif %}
< / 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">
< a class = "dropdown-item" href = "{% if hole %}/h/{{hole}}{% endif %}/log{% if type %}?kind={{type}}{% endif %}" > < img loading = "lazy" src = "{{SITE_FULL_IMAGES}}/e/marseyjanny.webp" alt = "avatar" class = "profile-pic-20 mr-2" > All< / a >
2023-12-03 17:18:03 +00:00
{% if not hole %}
< a class = "dropdown-item" href = "/log?{{single_user_url}}=AutoJanny{% if type %}&kind={{type}}{% endif %}" > < img loading = "lazy" src = "/@AutoJanny/pic" alt = "avatar" class = "profile-pic-20 mr-2" > AutoJanny< / a >
{% endif %}
2023-10-29 12:51:00 +00:00
{% for a in admins %}
< a class = "dropdown-item" href = "{% if hole %}/h/{{hole}}{% endif %}/log?{{single_user_url}}={{a}}{% if type %}&kind={{type}}{% endif %}" > < img loading = "lazy" src = "/@{{a}}/pic" alt = "avatar" class = "profile-pic-20 mr-2" > {{a}}< / a >
{% endfor %}
< / div >
2023-10-29 00:07:53 +00:00
< / div >
2023-01-01 11:36:20 +00:00
2023-10-29 12:51:00 +00:00
< div class = "dropdown dropdown-actions ml-3" >
< button type = "button" class = "btn btn-secondary dropdown-toggle" id = "dropdownMenuButton2" data-bs-toggle = "dropdown" >
{% if type %}< i class = "fas {{types[type]['icon']}} mr-2" > < / i > {{type}}{% else %}< i class = "fas fa-broom mr-2" > < / i > All{% endif %}
< / 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">
< a class = "dropdown-item" href = "{% if hole %}/h/{{hole}}{% endif %}/log{% if admin %}?{{single_user_url}}={{admin}}{% endif %}" > < i class = "fas fa-broom mr-2" > < / i > All< / a >
{% for t, v in types.items() %}
< a class = "dropdown-item" href = "{% if hole %}/h/{{hole}}{% endif %}/log?{% if admin %}{{single_user_url}}={{admin}}&{% endif %}kind={{t}}" > < i class = "fas {{v['icon']}} mr-2" > < / i > {{t}}< / a >
{% endfor %}
< / div >
2023-10-29 00:07:53 +00:00
< / div >
2022-05-04 23:09:46 +00:00
< / div >
2023-10-29 12:51:00 +00:00
{% endblock %}
< / div >
2022-05-04 23:09:46 +00:00
< / div >
< / div >
2023-10-29 12:51:00 +00:00
< div class = "rounded border mx-auto" >
{% for ma in actions %}
< div id = "action-{{ma.id}}" class = "modlog-action{% if ma.unread %} unread{% 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 = "fas text-center {{ma.icon}} text-lg text-white fa-fw" > < / i > < / div >
< div class = "d-flex align-items-center" >
< span class = "rounded" >
< div class = "profile-pic-35-wrapper" >
< img loading = "lazy" src = "{{ma.user.profile_url}}" alt = "avatar" class = "profile-pic-35" >
{% if ma.user.hat_active(v)[0] -%}
2023-12-22 20:14:21 +00:00
< img id = "profile-pic-35-hat" class = "profile-pic-35-hat hat" loading = "lazy" src = "{{ma.user.hat_active(v)[0]}}?x=7" data-bs-toggle = "tooltip" data-bs-placement = "bottom" title = "{{ma.user.hat_active(v)[1]}}" >
2023-10-29 12:51:00 +00:00
{%- endif %}
< / div >
< / 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" >
< span class = "log--item-age" id = "{{ma.id}}-age" data-bs-toggle = "tooltip" data-bs-placement = "bottom" data-nonce = "{{g.nonce}}" data-onmouseover = "timestamp(this, '{{ma.created_utc}}')" > {{ma.age_string}}< / span >
< a href = "{{ma.permalink}}" > < i class = "fas fa-link ml-3 text-muted" > < / i > < / a >
< button type = "button" class = "copy-link ml-3" data-clipboard-text = "{{ma.permalink}}" > < i class = "fas fa-copy text-muted" > < / i > < / button >
< / div >
2022-12-29 08:35:23 +00:00
< / div >
2022-05-04 23:09:46 +00:00
< / div >
< / div >
< / div >
2023-10-29 12:51:00 +00:00
{% else %}
< div class = "p-3" > There's nothing here right now.< / div >
{% endfor %}
2022-05-04 23:09:46 +00:00
< / div >
2023-10-29 12:51:00 +00:00
{% include "pagination.html" %}
2022-05-04 23:09:46 +00:00
< / div >
< / div >
2023-10-29 12:51:00 +00:00
< div class = "toast clipboard" id = "toast-success" data-bs-animation = "true" data-bs-autohide = "true" data-bs-delay = "5000" >
< div class = "toast-body text-center" >
< i class = "fas fa-check-circle text-success mr-2" > < / i > Link copied to clipboard
< / div >
2022-07-13 15:19:36 +00:00
< / div >
2023-10-29 12:51:00 +00:00
< script defer src = "{{'js/vendor/clipboard.js' | asset}}" > < / script >
2022-10-06 23:45:23 +00:00
{% endblock %}