forked from MarseyWorld/MarseyWorld
fix
parent
782074d3ea
commit
b92db319b1
|
@ -4,77 +4,80 @@
|
||||||
|
|
||||||
{% block pagetype %}{% endblock %}
|
{% block pagetype %}{% endblock %}
|
||||||
|
|
||||||
{% block PseudoSubmitForm %}{% endblock %}
|
{% block subHeader %}
|
||||||
|
<div class="relative max-w-screen-2xl mx-auto px-4 py-4 grid grid-cols-12 rounded-t-md">
|
||||||
{% block navbar %}
|
<div class="absolute top-0 left-0 w-full h-full bg-gradient-to-t from-gray-800 to-gray-700 rounded-t-md sub-header-shadow"></div>
|
||||||
<div class="font-weight-bold py-3"></div>
|
<div class="relative col-span-full flex items-center">
|
||||||
|
<div>
|
||||||
|
<h1 class="font-bold text-xl font-heading leading-normal">
|
||||||
|
Inbox
|
||||||
|
</h1>
|
||||||
|
<ul class="mt-1 text-gray-400 text-sm flex items-center space-x-3 leading-normal">
|
||||||
|
<li>
|
||||||
|
<a class="{% if not '=true' in request.full_path %}font-bold text-pink-600{% endif %}" href="/notifications">
|
||||||
|
All
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a class="{% if '/notifications?posts=true' in request.full_path %}font-bold text-pink-600{% endif %}" href="/notifications?posts=true">
|
||||||
|
Posts
|
||||||
|
{% if v.post_notifications_count %}
|
||||||
|
<span class="text-gray-600">({{v.post_notifications_count}})</span>
|
||||||
|
{% endif %}
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a class="{% if '/notifications?messages=true' in request.full_path %}font-bold text-pink-600{% endif %}" href="/notifications?messages=true">
|
||||||
|
Messages
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
{% if v.admin_level > 1 %}
|
||||||
|
<li>
|
||||||
|
<a class="{% if '/notifications?modmail=true' in request.full_path %}font-bold text-pink-600{% endif %}" href="/notifications?modmail=true">
|
||||||
|
Mod Mail
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
{% endif %}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="ml-auto">
|
||||||
|
<button class="block px-4 py-2 bg-gradient-to-t from-gray-800 to-gray-700 focus:from-gray-700 focus:to-gray-800 border border-gray-900 rounded-md text-shadow shadow-inset-t-white-10 text-sm font-bold text-gray-300 focus:text-gray-500 focus:shadow-inner focus:outline-none" onclick="post_toast('/clear')">
|
||||||
|
<i class="fas fa-check-double text-gray-500 fa-sm fa-fw mr-1"></i>
|
||||||
|
Mark all as read
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
<div class="row border-bottom bg-white w-200 pr-0" style="overflow: visible;">
|
<div class="col-span-full">
|
||||||
<div class="col p-0 w-100">
|
|
||||||
<ul class="nav settings-nav" style="padding:0 30px;">
|
|
||||||
<li class="nav-item">
|
|
||||||
<a class="nav-link py-3{% if not '=true' in request.full_path %} active{% endif %}" href="/notifications">
|
|
||||||
All
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
<li class="nav-item">
|
|
||||||
<a class="nav-link py-3{% if '/notifications?posts=true' in request.full_path %} active{% endif %}" href="/notifications?posts=true">
|
|
||||||
Posts{% if v.post_notifications_count %} <span class="text-primary font-weight-bold">({{v.post_notifications_count}})</span>{% endif %}
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
<li class="nav-item">
|
|
||||||
<a class="nav-link py-3{% if '/notifications?messages=true' in request.full_path %} active{% endif %}" href="/notifications?messages=true">
|
|
||||||
Messages
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
{% if v.admin_level > 1 %}
|
|
||||||
<li class="nav-item">
|
|
||||||
<a class="nav-link py-3{% if '/notifications?modmail=true' in request.full_path %} active{% endif %}" href="/notifications?modmail=true">
|
|
||||||
Modmail
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
{% endif %}
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
{% with comments=notifications %}
|
||||||
<a class="btn btn-primary mt-3 ml-3" href="javascript:void(0)" onclick="post_toast('/clear')">Clear all notifications</a>
|
|
||||||
|
|
||||||
<div class="notifs p-3 p-md-0">
|
|
||||||
|
|
||||||
{% with comments=notifications %}
|
|
||||||
{% include "comments.html" %}
|
{% include "comments.html" %}
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
|
|
||||||
{% if not notifications %}
|
{% if not notifications %}
|
||||||
<div class="text-center py-7 py-md-8">
|
<div class="flex flex-col items-center justify-center py-24 md:py-48">
|
||||||
|
<img loading="lazy" src="https://c.tenor.com/NhDy-AkelhQAAAAM/marsey-drama.gif" class="w-20 h-20 mb-4 rounded-md object-cover">
|
||||||
<span class="fa-stack fa-2x text-muted mb-4">
|
<h2 class="text-xl font-bold leading-normal font-heading">No unread messages</h2>
|
||||||
<i class="fas fa-square text-gray-400 fa-stack-2x"></i>
|
<p class="text-gray-500 text-sm">
|
||||||
<i class="fas text-gray-600 fa-envelope fa-stack-1x text-lg"></i>
|
When someone comments or replies, it will show up here.
|
||||||
</span>
|
</p>
|
||||||
|
<a href="/notifications" class="block mt-3 px-4 py-2 bg-gradient-to-t from-pink-700 to-pink-600 focus:from-pink-600 focus:to-pink-700 border border-gray-900 rounded-md text-shadow shadow-inset-t-white-10 text-sm font-bold text-gray-300 focus:text-gray-500 focus:shadow-inner focus:outline-none">
|
||||||
<div class="h5">No unread messages</div>
|
View entire inbox
|
||||||
<div class="text-small text-muted mb-3">When someone comments or replies, it will show up here.</div>
|
</a>
|
||||||
<a href="/notifications" class="btn btn-primary ">View entire inbox</a>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block pagenav %}
|
|
||||||
{% if notifications %}
|
{% if notifications %}
|
||||||
<nav aria-label="Page navigation">
|
<div class="col-span-full">
|
||||||
<ul class="pagination pagination-sm mb-0">
|
<ul class="flex flex-wrap items-center mb-4">
|
||||||
{% if page>1 %}
|
{% if page>1 %}
|
||||||
<li class="page-item">
|
<li>
|
||||||
{% if "?page=" in request.full_path %}
|
{% if "?page=" in request.full_path %}
|
||||||
{% set path = request.full_path.split("?page=")[0] %}
|
{% set path = request.full_path.split("?page=")[0] %}
|
||||||
{% elif "&page=" in request.full_path %}
|
{% elif "&page=" in request.full_path %}
|
||||||
|
@ -83,17 +86,17 @@
|
||||||
{% set path = request.full_path %}
|
{% set path = request.full_path %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if request.full_path == "/notifications" %}
|
{% if request.full_path == "/notifications" %}
|
||||||
<small><a class="page-link" href="{{path}}?page={{page-1}}">Previous</a></small>
|
<small><a class="block px-2 py-1 text-sm font-bold text-pink-600 bg-gray-900" href="{{path}}?page={{page-1}}">Previous</a></small>
|
||||||
{% else %}
|
{% else %}
|
||||||
<small><a class="page-link" href="{{path}}&page={{page-1}}">Previous</a></small>
|
<small><a class="block px-2 py-1 text-sm font-bold text-pink-600 bg-gray-900" href="{{path}}&page={{page-1}}">Previous</a></small>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</li>
|
</li>
|
||||||
{% else %}
|
{% else %}
|
||||||
<li class="page-item disabled"><span class="page-link">Prev</span></li>
|
<li><span class="block px-2 py-1 text-sm font-bold text-gray-700 bg-gray-800 disabled">Prev</span></li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if next_exists %}
|
{% if next_exists %}
|
||||||
<li class="page-item">
|
<li>
|
||||||
{% if "?page=" in request.full_path %}
|
{% if "?page=" in request.full_path %}
|
||||||
{% set path = request.full_path.split("?page=")[0] %}
|
{% set path = request.full_path.split("?page=")[0] %}
|
||||||
{% elif "&page=" in request.full_path %}
|
{% elif "&page=" in request.full_path %}
|
||||||
|
@ -102,17 +105,18 @@
|
||||||
{% set path = request.full_path %}
|
{% set path = request.full_path %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if request.full_path == "/notifications" %}
|
{% if request.full_path == "/notifications" %}
|
||||||
<small><a class="page-link" href="{{path}}?page={{page+1}}">Next</a></small>
|
<small><a class="block px-2 py-1 text-sm font-bold text-pink-600 bg-gray-900" href="{{path}}?page={{page+1}}">Next</a></small>
|
||||||
{% else %}
|
{% else %}
|
||||||
<small><a class="page-link" href="{{path}}&page={{page+1}}">Next</a></small>
|
<small><a class="block px-2 py-1 text-sm font-bold text-pink-600 bg-gray-900" href="{{path}}&page={{page+1}}">Next</a></small>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</li>
|
</li>
|
||||||
{% else %}
|
{% else %}
|
||||||
<li class="page-item disabled"><span class="page-link">Next</span></li>
|
<li><span class="block px-2 py-1 text-sm font-bold text-gray-700 bg-gray-800 disabled">Next</span></li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block GIFpicker %}
|
{% block GIFpicker %}
|
||||||
|
|
Loading…
Reference in New Issue