forked from rDrama/rDrama
1
0
Fork 0
master
kek7198 2021-12-31 10:08:58 -06:00
parent 82617a89f8
commit c4ee01a49f
3 changed files with 36 additions and 65 deletions

View File

@ -47,7 +47,7 @@
'icon': 'fa-trash',
'title': 'Removed Posts',
'description': 'Posts removed by mods',
'link': '/admin/users'
'link': '/admin/removed/posts'
}
]
},

View File

@ -1,37 +1,7 @@
{% extends "CHRISTMAS/admin/image_posts.html" %}
{% extends "CHRISTMAS/admin/removed_posts.html" %}
{% block title %}
<title>Removed Content</title>
<meta name="description" content="on {{'SITE_NAME' | app_config}}">
{% endblock %}
{% block content %}
<div class="row justify-content-around mx-lg-5 d-lg-none no-gutters">
<div class="col bg-light border-bottom rounded-md p-3">
<div class="profile-details">
<div class="media">
<div class="media-body">
<pre></pre>
<h5 class="h6 d-inline-block">Removed Posts</h5>
</div>
</div>
</div>
</div>
</div>
<div class="row no-gutters">
<div class="col">
{% block listing %}
<div class="posts">
{% block listing %}
<div class="col-span-full px-2.5 md:px-0">
{% with comments=listing %}
{% include "CHRISTMAS/comments.html" %}
{% endwith %}
@ -45,29 +15,4 @@
</div>
{% endif %}
</div>
{% endblock %}
</div>
</div>
{% endblock %}
{% block pagenav %}
<nav aria-label="Page navigation">
<ul class="pagination pagination-sm py-3 pl-3 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>
{% endblock %}

View File

@ -1,7 +1,9 @@
{% extends "CHRISTMAS/default.html" %}
{% block pagetype %}userpage{% endblock %}
{% block title %}
<title>Removed Content</title>
<title>Reported Posts</title>
<meta name="description" content="on {{'SITE_NAME' | app_config}}">
{% endblock %}
@ -11,7 +13,7 @@
<div class="relative col-span-full flex items-center">
<div>
<h1 class="font-bold text-xl font-heading leading-normal mb-0">
Removed Posts
Removed Content
</h1>
<ul class="flex space-x-2 text-xs text-gray-500 dark:text-gray-400 leading-normal mb-0">
<li>
@ -21,10 +23,34 @@
<i class="fas fa-arrow-alt-right text-shadow fa-fw fa-sm"></i>
</li>
<li>
<a href="#" class="text-gray-700 dark:text-gray-500 hover:underline">Removed Posts</a>
<a href="#" class="text-gray-700 dark:text-gray-500 hover:underline">Removed Content</a>
</li>
</ul>
</div>
<div class="ml-auto">
<div class="dropdown">
<button class="block px-4 py-2 bg-gradient-to-t from-gray-200 to-gray-100 focus:from-gray-100 focus:to-gray-200 border border-gray-300 rounded-md text-shadow shadow-inset-t-white-10 text-sm font-bold text-gray-700 focus:text-gray-900 focus:shadow-inner focus:outline-none dropdown-toggle" type="button" id="dropdownAdminReportSortsButton" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
{% if request.path=="/admin/removed/posts" %}
<i class="fas fa-pencil text-gray-500 fa-sm fa-fw mr-1"></i>Posts
{% endif %}
{% if request.path=="/admin/removed/comments" %}
<i class="fas fa-comment-alt text-gray-500 fa-sm fa-fw mr-1"></i>Comments
{% endif %}
</button>
<ul class="dropdown-menu w-56 bg-gray-900 rounded-md shadow-lg" aria-labelledby="dropdownAdminReportSortsButton" x-placement="bottom-start">
<li class="{% if request.path=="/admin/removed/posts" %}hidden{% endif %}">
<a class="dropdown-item dropdown-item-primary" href="/admin/removed/posts">
<i class="fas fa-pencil fa-sm fa-fw mr-4"></i>Posts
</a>
</li>
<li class="{% if request.path=="/admin/removed/comments" %}hidden{% endif %}">
<a class="dropdown-item dropdown-item-primary" href="/admin/removed/comments">
<i class="fas fa-comment-alt fa-sm fa-fw mr-4"></i>Comments
</a>
</li>
</ul>
</div>
</div>
</div>
</div>
{% endblock %}
@ -32,9 +58,9 @@
{% block content %}
<div class="col-span-full xl:col-span-9 dark:bg-gray-700 md:dark:bg-gray-800">
{% block listing %}
<ul class="flex flex-col sm:py-4 my-2.5 sm:my-0" id="posts">
{% include "CHRISTMAS/submission_listing.html" %}
</ul>
<ul class="flex flex-col sm:py-4 my-2.5 sm:my-0" id="posts">
{% include "CHRISTMAS/submission_listing.html" %}
</ul>
{% endblock %}
</div>
{% endblock %}