forked from rDrama/rDrama
fix
parent
00c7ca4105
commit
9a03eb4fd2
|
@ -444,21 +444,23 @@
|
||||||
<script defer src="/assets/js/popover.js?v=9"></script>
|
<script defer src="/assets/js/popover.js?v=9"></script>
|
||||||
<script defer src="/assets/js/submission_listing.js?v=2"></script>
|
<script defer src="/assets/js/submission_listing.js?v=2"></script>
|
||||||
|
|
||||||
<script defer>
|
<script>
|
||||||
(() => {
|
window.addEventListener("load",function(event) {
|
||||||
{% if (not v or v.highlightcomments) %}
|
(() => {
|
||||||
showNewCommentCounts('{{p.id}}', {{p.comment_count}})
|
{% if (not v or v.highlightcomments) %}
|
||||||
{% endif %}
|
showNewCommentCounts('{{p.id}}', {{p.comment_count}})
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% if p.stickied %}
|
{% if p.stickied %}
|
||||||
const pinned_info = document.getElementById('pinned-{{p.id}}')
|
const pinned_info = document.getElementById('pinned-{{p.id}}')
|
||||||
{% if p.stickied.startswith('t:') %}
|
{% if p.stickied.startswith('t:') %}
|
||||||
pinned_info.setAttribute("data-bs-original-title", `Pinned until ${new Date({{p.stickied[2:]}} * 1000).toString()}`)
|
pinned_info.setAttribute("data-bs-original-title", `Pinned until ${new Date({{p.stickied[2:]}} * 1000).toString()}`)
|
||||||
{% else %}
|
{% else %}
|
||||||
pinned_info.setAttribute("data-bs-original-title", "Pinned by @{{p.stickied}}")
|
pinned_info.setAttribute("data-bs-original-title", "Pinned by @{{p.stickied}}")
|
||||||
{%endif%}
|
{%endif%}
|
||||||
{%endif%}
|
{%endif%}
|
||||||
})()
|
})()
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
|
Loading…
Reference in New Issue