forked from rDrama/rDrama
1
0
Fork 0
master
Aevann1 2021-12-10 01:20:11 +02:00
parent c25363705c
commit 16e7146ff4
1 changed files with 16 additions and 0 deletions

View File

@ -767,6 +767,22 @@
<script src="/assets/js/popover.js?v=10"></script>
<script src="/assets/js/comments.js?v=10"></script>
<script>
{% if p and (not v or v.highlightcomments) %}
comments = JSON.parse(localStorage.getItem("comment-counts")) || {}
lastCount = comments['{{p.id}}']
redhtml = '<i style="color:red !important" class="text-admin fas fa-circle" data-bs-toggle="tooltip" data-bs-placement="bottom" data-bs-original-title="Unread"></i>'
if (lastCount)
{
{% for c in comments %}
{% if not (v and v.id==c.author_id) %}
if ({{c.created_utc*1000}} > lastCount.t) document.getElementById("reddot-{{c.id}}").innerHTML = redhtml
{% endif %}
{% endfor %}
}
{% endif %}
</script>
{% if offset %}
{% if p %}
{% set pid = p.id %}