2022-05-04 23:09:46 +00:00
|
|
|
{% extends "default.html" %}
|
|
|
|
|
|
|
|
{% block fixedMobileBarJS %}{% endblock %}
|
|
|
|
|
|
|
|
{% block pagetype %}{% endblock %}
|
|
|
|
|
|
|
|
{% block PseudoSubmitForm %}{% endblock %}
|
|
|
|
|
|
|
|
{% block navbar %}
|
|
|
|
<div class="font-weight-bold py-3"></div>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
|
|
|
|
<div class="row border-bottom bg-white w-200 pr-0" style="overflow: visible;">
|
2022-09-04 23:15:37 +00:00
|
|
|
<div class="col p-0 w-100">
|
2022-06-10 12:28:46 +00:00
|
|
|
<ul class="nav settings-nav" style="padding:0 0 0 20px" id="notifications--nav-list">
|
2022-05-04 23:09:46 +00:00
|
|
|
<li class="nav-item">
|
2022-07-08 18:06:54 +00:00
|
|
|
<a class="nav-link py-3{% if request.path == '/notifications' %} active{% endif %}" href="/notifications">
|
2022-06-15 05:43:34 +00:00
|
|
|
All {% if v.normal_notifications_count %}<span class="font-weight-bold" style="color:#ff0000">({{v.normal_notifications_count}})</span>{% endif %}
|
2022-05-04 23:09:46 +00:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
2022-07-08 18:06:54 +00:00
|
|
|
<a class="nav-link py-3{% if request.path == '/notifications/posts' %} active{% endif %}" href="/notifications/posts">
|
2022-06-15 05:43:34 +00:00
|
|
|
Posts {% if v.post_notifications_count %}<span class="font-weight-bold" style="color:#0000ff">({{v.post_notifications_count}})</span>{% endif %}
|
2022-05-04 23:09:46 +00:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
2022-07-08 18:06:54 +00:00
|
|
|
<a class="nav-link py-3{% if request.path == '/notifications/messages' %} active{% endif %}" href="/notifications/messages">
|
2022-05-04 23:09:46 +00:00
|
|
|
Messages
|
|
|
|
</a>
|
|
|
|
</li>
|
2022-06-10 12:28:46 +00:00
|
|
|
{% if v.admin_level >= NOTIF_MODACTION_JL_MIN %}
|
|
|
|
<li class="nav-item">
|
2022-07-08 18:06:54 +00:00
|
|
|
<a class="nav-link py-3{% if request.path == '/notifications/modactions' %} active{% endif %}" href="/notifications/modactions">
|
2022-06-10 12:28:46 +00:00
|
|
|
Modactions {% if v.modaction_notifications_count %}<span class="font-weight-bold" style="color:#e5990d">({{v.modaction_notifications_count}})</span>{% endif %}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
2022-06-10 11:12:19 +00:00
|
|
|
{% if v.admin_level >= 2 %}
|
2022-05-04 23:09:46 +00:00
|
|
|
<li class="nav-item">
|
2022-07-08 18:06:54 +00:00
|
|
|
<a class="nav-link py-3{% if request.path == '/notifications/modmail' %} active{% endif %}" href="/notifications/modmail">
|
2022-05-04 23:09:46 +00:00
|
|
|
Modmail
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
2022-06-10 11:12:19 +00:00
|
|
|
{% if v.can_view_offsitementions %}
|
2022-05-04 23:09:46 +00:00
|
|
|
<li class="nav-item">
|
2022-07-08 18:06:54 +00:00
|
|
|
<a class="nav-link py-3{% if request.path == '/notifications/reddit' %} active{% endif %}" href="/notifications/reddit">
|
2022-05-04 23:09:46 +00:00
|
|
|
Reddit {% if v.reddit_notifications_count %}<span class="font-weight-bold" style="color:#805ad5">({{v.reddit_notifications_count}})</span>{% endif %}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
|
|
|
</ul>
|
2022-09-04 23:15:37 +00:00
|
|
|
</div>
|
2022-05-04 23:09:46 +00:00
|
|
|
</div>
|
|
|
|
|
2022-08-05 16:07:15 +00:00
|
|
|
<a class="btn btn-primary btn-rainbow ml-3 mt-4" role="button" onclick="post_toast(this,'/clear', true)">Mark all notifications as read</a>
|
2022-05-04 23:09:46 +00:00
|
|
|
|
|
|
|
<div class="notifs px-3 p-md-0">
|
|
|
|
|
2022-07-08 18:06:54 +00:00
|
|
|
{% if request.path == '/notifications/posts' %}
|
|
|
|
{% with listing=notifications %}
|
2022-07-08 19:45:38 +00:00
|
|
|
<div class="mt-4">
|
2022-07-08 19:35:15 +00:00
|
|
|
{% include "submission_listing.html" %}
|
|
|
|
</div>
|
2022-07-08 18:06:54 +00:00
|
|
|
{% endwith %}
|
2022-08-05 21:50:30 +00:00
|
|
|
{% elif request.path == '/notifications/modactions' %}
|
|
|
|
<div class="rounded border bg-white mx-auto mt-4">
|
|
|
|
{% for ma in notifications %}
|
|
|
|
|
|
|
|
<div id="action-{{ma.id}}" class="{% if ma.unread %}unread{% endif %} position-relative d-flex justify-content-between flex-wrap align-items-center h-min-16 px-3 py-3 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">
|
2022-09-06 03:51:55 +00:00
|
|
|
<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 -%}
|
|
|
|
<img id="profile-pic-35-hat" class="profile-pic-35-hat hat" loading="lazy" src="{{ma.user.hat_active}}?v=3" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{ma.user.hat_tooltip(v)}}">
|
|
|
|
{%- endif %}
|
|
|
|
</div>
|
|
|
|
</span>
|
2022-08-05 21:50:30 +00:00
|
|
|
<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" onmouseover="timestamp('{{ma.id}}-age','{{ma.created_utc}}')">{{ma.age_string}}</span>
|
|
|
|
<a href="{{ma.permalink}}"><i class="far fa-link ml-1 text-muted"></i></a>
|
|
|
|
<a role="button" class="copy-link" role="button" data-clipboard-text="{{ma.permalink}}"><i class="far fa-copy ml-1 text-muted"></i></a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
{% else %}
|
2022-09-06 03:51:55 +00:00
|
|
|
<div class="p-3">There's nothing here right now.</div>
|
2022-08-05 21:50:30 +00:00
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
<div class="toast clipboard" id="toast-success" role="alert" aria-live="assertive" aria-atomic="true" 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>
|
|
|
|
</div>
|
|
|
|
|
2022-09-04 23:50:43 +00:00
|
|
|
<script src="/assets/js/clipboard.js?v=4000"></script>
|
2022-07-08 18:06:54 +00:00
|
|
|
{% else %}
|
|
|
|
{% with comments=notifications %}
|
|
|
|
{% include "comments.html" %}
|
|
|
|
{% endwith %}
|
|
|
|
{% endif %}
|
2022-05-04 23:09:46 +00:00
|
|
|
|
|
|
|
{% if not notifications %}
|
|
|
|
<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>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block pagenav %}
|
|
|
|
{% if notifications %}
|
|
|
|
<nav aria-label="Page navigation">
|
|
|
|
<ul class="pagination pagination-sm mb-0 mt-4">
|
|
|
|
{% if page>1 %}
|
|
|
|
<li class="page-item">
|
2022-07-08 18:06:54 +00:00
|
|
|
<small><a class="page-link" href="{{request.path}}?page={{page-1}}">Previous</a></small>
|
2022-05-04 23:09:46 +00:00
|
|
|
</li>
|
|
|
|
{% else %}
|
|
|
|
<li class="page-item disabled"><span class="page-link">Prev</span></li>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if next_exists %}
|
|
|
|
<li class="page-item">
|
2022-07-08 18:06:54 +00:00
|
|
|
<small><a class="page-link" href="{{request.path}}?page={{page+1}}">Next</a></small>
|
2022-05-04 23:09:46 +00:00
|
|
|
</li>
|
|
|
|
{% else %}
|
|
|
|
<li class="page-item disabled"><span class="page-link">Next</span></li>
|
|
|
|
{% endif %}
|
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
{% endif %}
|
|
|
|
<style>
|
|
|
|
.comment {
|
2022-08-11 19:03:15 +00:00
|
|
|
margin-top: 1rem;
|
2022-05-04 23:09:46 +00:00
|
|
|
}
|
|
|
|
</style>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block GIFpicker %}
|
2021-07-21 01:12:26 +00:00
|
|
|
{% endblock %}
|