2021-10-15 14:08:27 +00:00
|
|
|
|
{% extends "default.html" %}
|
|
|
|
|
|
|
|
|
|
{% block fixedMobileBarJS %}{% endblock %}
|
|
|
|
|
|
|
|
|
|
{% block pagetype %}{% endblock %}
|
|
|
|
|
|
2021-12-14 22:48:37 +00:00
|
|
|
|
{% block PseudoSubmitForm %}{% endblock %}
|
|
|
|
|
|
|
|
|
|
{% block navbar %}
|
|
|
|
|
<div class="font-weight-bold py-3"></div>
|
2021-10-15 14:08:27 +00:00
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
|
|
2021-12-14 22:48:37 +00:00
|
|
|
|
<div class="row border-bottom bg-white w-200 pr-0" style="overflow: visible;">
|
|
|
|
|
<div class="col p-0 w-100">
|
|
|
|
|
<ul class="nav settings-nav" style="padding:0 30px;">
|
|
|
|
|
<li class="nav-item">
|
2021-12-20 23:51:04 +00:00
|
|
|
|
<a class="nav-link py-3{% if not '=true' in request.full_path %} active{% endif %}" href="/notifications">
|
2021-12-20 23:50:02 +00:00
|
|
|
|
All{% if v.not_post_notifications_count %} <span class="text-primary font-weight-bold">({{v.not_post_notifications_count}})</span>{% endif %}
|
2021-12-14 22:48:37 +00:00
|
|
|
|
</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>
|
2021-10-15 14:08:27 +00:00
|
|
|
|
|
2021-12-14 22:48:37 +00:00
|
|
|
|
|
|
|
|
|
<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" %}
|
|
|
|
|
{% endwith %}
|
2021-10-15 14:08:27 +00:00
|
|
|
|
|
|
|
|
|
{% if not notifications %}
|
2021-12-14 22:48:37 +00:00
|
|
|
|
<div class="text-center py-7 py-md-8">
|
|
|
|
|
|
|
|
|
|
<span class="fa-stack fa-2x text-muted mb-4">
|
|
|
|
|
<i class="fas fa-square text-gray-400 fa-stack-2x"></i>
|
|
|
|
|
<i class="fas text-gray-600 fa-envelope fa-stack-1x text-lg"></i>
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
|
|
<div class="h5">No unread messages</div>
|
|
|
|
|
<div class="text-small text-muted mb-3">When someone comments or replies, it will show up here.</div>
|
|
|
|
|
<a href="/notifications" class="btn btn-primary ">View entire inbox</a>
|
2021-10-15 14:08:27 +00:00
|
|
|
|
</div>
|
2021-12-14 22:48:37 +00:00
|
|
|
|
|
2021-10-15 14:08:27 +00:00
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
2021-12-14 22:48:37 +00:00
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|
|
{% block pagenav %}
|
2021-10-15 14:08:27 +00:00
|
|
|
|
{% if notifications %}
|
2021-12-14 22:48:37 +00:00
|
|
|
|
<nav aria-label="Page navigation">
|
|
|
|
|
<ul class="pagination pagination-sm mb-0">
|
2021-10-15 14:08:27 +00:00
|
|
|
|
{% if page>1 %}
|
2021-12-14 22:48:37 +00:00
|
|
|
|
<li class="page-item">
|
2021-10-15 14:08:27 +00:00
|
|
|
|
{% if "?page=" in request.full_path %}
|
|
|
|
|
{% set path = request.full_path.split("?page=")[0] %}
|
|
|
|
|
{% elif "&page=" in request.full_path %}
|
|
|
|
|
{% set path = request.full_path.split("&page=")[0] %}
|
|
|
|
|
{% else %}
|
|
|
|
|
{% set path = request.full_path %}
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% if request.full_path == "/notifications" %}
|
2021-12-14 22:48:37 +00:00
|
|
|
|
<small><a class="page-link" href="{{path}}?page={{page-1}}">Previous</a></small>
|
2021-10-15 14:08:27 +00:00
|
|
|
|
{% else %}
|
2021-12-14 22:48:37 +00:00
|
|
|
|
<small><a class="page-link" href="{{path}}&page={{page-1}}">Previous</a></small>
|
2021-10-15 14:08:27 +00:00
|
|
|
|
{% endif %}
|
|
|
|
|
</li>
|
|
|
|
|
{% else %}
|
2021-12-14 22:48:37 +00:00
|
|
|
|
<li class="page-item disabled"><span class="page-link">Prev</span></li>
|
2021-10-15 14:08:27 +00:00
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
{% if next_exists %}
|
2021-12-14 22:48:37 +00:00
|
|
|
|
<li class="page-item">
|
2021-10-15 14:08:27 +00:00
|
|
|
|
{% if "?page=" in request.full_path %}
|
|
|
|
|
{% set path = request.full_path.split("?page=")[0] %}
|
|
|
|
|
{% elif "&page=" in request.full_path %}
|
|
|
|
|
{% set path = request.full_path.split("&page=")[0] %}
|
|
|
|
|
{% else %}
|
|
|
|
|
{% set path = request.full_path %}
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% if request.full_path == "/notifications" %}
|
2021-12-14 22:48:37 +00:00
|
|
|
|
<small><a class="page-link" href="{{path}}?page={{page+1}}">Next</a></small>
|
2021-10-15 14:08:27 +00:00
|
|
|
|
{% else %}
|
2021-12-14 22:48:37 +00:00
|
|
|
|
<small><a class="page-link" href="{{path}}&page={{page+1}}">Next</a></small>
|
2021-10-15 14:08:27 +00:00
|
|
|
|
{% endif %}
|
|
|
|
|
</li>
|
|
|
|
|
{% else %}
|
2021-12-14 22:48:37 +00:00
|
|
|
|
<li class="page-item disabled"><span class="page-link">Next</span></li>
|
2021-10-15 14:08:27 +00:00
|
|
|
|
{% endif %}
|
|
|
|
|
</ul>
|
2021-12-14 22:48:37 +00:00
|
|
|
|
</nav>
|
2021-10-15 14:08:27 +00:00
|
|
|
|
{% endif %}
|
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|
|
{% block GIFpicker %}
|
2021-07-21 01:12:26 +00:00
|
|
|
|
{% endblock %}
|