master
Aevann1 2021-09-29 19:20:35 +02:00
parent 719c26a729
commit dd4d435ca0
1 changed files with 3 additions and 3 deletions

View File

@ -173,9 +173,9 @@
<script>
comments = JSON.parse(localStorage.getItem("comment-counts")) || {}
lastCount = comments['{{p.id}}']
console.log({{c.created_utc*1000}})
console.log(lastCount.t)
document.getElementById("reddot-{{c.id}}").innerHTML = '<i style="color:red !important" class="text-admin fas fa-circle" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Unread"></i>'
if (lastCount && {{c.created_utc*1000}} > lastCount.t) {
document.getElementById("reddot-{{c.id}}").innerHTML = '<i style="color:red !important" class="text-admin fas fa-circle" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Unread"></i>'
}
</script>
<span id="reddot-{{c.id}}"></span>
{% endif %}