forked from MarseyWorld/MarseyWorld
vcx
parent
16f2f5d927
commit
381f295998
|
@ -604,7 +604,7 @@ def api_comment(v):
|
||||||
g.db.commit()
|
g.db.commit()
|
||||||
|
|
||||||
if request.headers.get("Authorization"): return c.json
|
if request.headers.get("Authorization"): return c.json
|
||||||
return render_template("comments.html", v=v, comments=[c])
|
return render_template("comments.html", v=v, comments=[c], ajax=True)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -338,7 +338,7 @@ def viewmore(v, pid, sort, offset):
|
||||||
if len(comments) == len(comments2): offset = None
|
if len(comments) == len(comments2): offset = None
|
||||||
comments = comments2
|
comments = comments2
|
||||||
|
|
||||||
return render_template("comments.html", v=v, comments=comments, render_replies=True, pid=pid, sort=sort, offset=offset)
|
return render_template("comments.html", v=v, comments=comments, render_replies=True, pid=pid, sort=sort, offset=offset, ajax=True)
|
||||||
|
|
||||||
|
|
||||||
@app.post("/morecomments/<cid>")
|
@app.post("/morecomments/<cid>")
|
||||||
|
@ -387,7 +387,7 @@ def morecomments(v, cid):
|
||||||
c = g.db.query(Comment).filter_by(id=cid).one_or_none()
|
c = g.db.query(Comment).filter_by(id=cid).one_or_none()
|
||||||
comments = c.replies
|
comments = c.replies
|
||||||
|
|
||||||
return render_template("comments.html", v=v, comments=comments, render_replies=True)
|
return render_template("comments.html", v=v, comments=comments, render_replies=True, ajax=True)
|
||||||
|
|
||||||
@app.post("/edit_post/<pid>")
|
@app.post("/edit_post/<pid>")
|
||||||
@limiter.limit("1/second;30/minute;200/hour;1000/day")
|
@limiter.limit("1/second;30/minute;200/hour;1000/day")
|
||||||
|
|
|
@ -573,7 +573,7 @@ def messagereply(v):
|
||||||
g.db.add(notif)
|
g.db.add(notif)
|
||||||
g.db.commit()
|
g.db.commit()
|
||||||
|
|
||||||
return render_template("comments.html", v=v, comments=[new_comment])
|
return render_template("comments.html", v=v, comments=[new_comment], ajax=True)
|
||||||
|
|
||||||
@app.get("/2faqr/<secret>")
|
@app.get("/2faqr/<secret>")
|
||||||
@auth_required
|
@auth_required
|
||||||
|
|
|
@ -1,75 +1,77 @@
|
||||||
{% if comment_info and not request.full_path.endswith('#context') %}
|
{% if not ajax %}
|
||||||
<script>
|
{% if comment_info and not request.full_path.endswith('#context') %}
|
||||||
history.pushState(null, null, '#context');
|
<script>
|
||||||
</script>
|
history.pushState(null, null, '#context');
|
||||||
{% endif %}
|
</script>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% if v %}
|
{% if v %}
|
||||||
{% include "award_modal.html" %}
|
{% include "award_modal.html" %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
html {
|
html {
|
||||||
scroll-padding-top: 75px;
|
scroll-padding-top: 75px;
|
||||||
}
|
}
|
||||||
.comment {
|
.comment {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
.comment .comment-body {
|
.comment .comment-body {
|
||||||
padding: 3px 0 0 0;
|
padding: 3px 0 0 0;
|
||||||
}
|
}
|
||||||
.comment-anchor {
|
.comment-anchor {
|
||||||
margin-top: -75px;
|
margin-top: -75px;
|
||||||
padding: 1px;
|
padding: 1px;
|
||||||
}
|
}
|
||||||
.comment-anchor::before {
|
.comment-anchor::before {
|
||||||
content: '';
|
content: '';
|
||||||
display: block;
|
display: block;
|
||||||
padding-top: 75px;
|
padding-top: 75px;
|
||||||
}
|
}
|
||||||
.comment-anchor:target {
|
.comment-anchor:target {
|
||||||
background: rgba(255,255,255,0.2);
|
background: rgba(255,255,255,0.2);
|
||||||
padding: 12px;
|
padding: 12px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<div style="display:none" id="popover">
|
<div style="display:none" id="popover">
|
||||||
<div class="popover-user-profile" role="tooltip">
|
<div class="popover-user-profile" role="tooltip">
|
||||||
<img loading="lazy" class="pop-banner w-100 h-64 object-cover">
|
<img loading="lazy" class="pop-banner w-100 h-64 object-cover">
|
||||||
<div class="d-flex align-items-end px-3 mt-n6 mb-3">
|
<div class="d-flex align-items-end px-3 mt-n6 mb-3">
|
||||||
<img loading="lazy" class="pop-picture avatar-72 rounded img-thumbnail shadow-sm">
|
<img loading="lazy" class="pop-picture avatar-72 rounded img-thumbnail shadow-sm">
|
||||||
<div class="px-3 text-truncate">
|
<div class="px-3 text-truncate">
|
||||||
<h5 class="pop-username text-truncate text-black"></h5>
|
<h5 class="pop-username text-truncate text-black"></h5>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="px-3">
|
||||||
|
<span class="pop-bio popover-bio text-black"></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="px-3">
|
|
||||||
<span class="pop-bio popover-bio text-black"></span>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="pop-badges ml-3 mr-3 my-2">
|
<div class="pop-badges ml-3 mr-3 my-2">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="border-top d-flex align-items-center p-3 gap-3 smol">
|
<div class="border-top d-flex align-items-center p-3 gap-3 smol">
|
||||||
<span>
|
<span>
|
||||||
<strong class="pop-postcount text-black"></strong>
|
<strong class="pop-postcount text-black"></strong>
|
||||||
<span class="text-black">posts</span>
|
<span class="text-black">posts</span>
|
||||||
</span>
|
</span>
|
||||||
<span class="ml-3">
|
<span class="ml-3">
|
||||||
<strong class="pop-commentcount text-black"></strong>
|
<strong class="pop-commentcount text-black"></strong>
|
||||||
<span class="text-black">comments</span>
|
<span class="text-black">comments</span>
|
||||||
</span>
|
</span>
|
||||||
<span class="ml-3">
|
<span class="ml-3">
|
||||||
<strong class="pop-coins text-black"></strong>
|
<strong class="pop-coins text-black"></strong>
|
||||||
<span class="text-black">coins</span>
|
<span class="text-black">coins</span>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<a href="/" {% if v and v.newtab and not g.webview %}target="_blank"{% endif %} class="pop-viewmore ml-auto text-decoration-none">
|
<a href="/" {% if v and v.newtab and not g.webview %}target="_blank"{% endif %} class="pop-viewmore ml-auto text-decoration-none">
|
||||||
View
|
View
|
||||||
<i class="fas fa-arrow-right fa-sm px-1"></i>
|
<i class="fas fa-arrow-right fa-sm px-1"></i>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
{% endif %}
|
||||||
|
|
||||||
{% macro single_comment(c, level=1) %}
|
{% macro single_comment(c, level=1) %}
|
||||||
|
|
||||||
|
@ -742,206 +744,209 @@
|
||||||
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
{% if v %}
|
{% if not ajax %}
|
||||||
{% include "gif_modal.html" %}
|
{% if v %}
|
||||||
{% include "emoji_modal.html" %}
|
{% include "gif_modal.html" %}
|
||||||
{% if v.admin_level > 1 %}
|
{% include "emoji_modal.html" %}
|
||||||
{% include "ban_modal.html" %}
|
{% if v.admin_level > 1 %}
|
||||||
{% endif %}
|
{% include "ban_modal.html" %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<div class="modal fade" id="deleteCommentModal" tabindex="-1" role="dialog" aria-labelledby="deleteCommentModalTitle" aria-hidden="true">
|
<div class="modal fade" id="deleteCommentModal" tabindex="-1" role="dialog" aria-labelledby="deleteCommentModalTitle" aria-hidden="true">
|
||||||
<div class="modal-dialog modal-dialog-centered" role="document">
|
<div class="modal-dialog modal-dialog-centered" role="document">
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
<h5 class="modal-title">Delete comment?</h5>
|
<h5 class="modal-title">Delete comment?</h5>
|
||||||
<button class="close" data-bs-dismiss="modal" aria-label="Close">
|
<button class="close" data-bs-dismiss="modal" aria-label="Close">
|
||||||
<span aria-hidden="true"><i class="far fa-times"></i></span>
|
<span aria-hidden="true"><i class="far fa-times"></i></span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
|
||||||
<div class="modal-body text-center">
|
|
||||||
|
|
||||||
<div class="py-4">
|
|
||||||
<i class="fad fa-trash-alt text-muted" style="font-size: 3.5rem;"></i>
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="modal-body text-center">
|
||||||
|
|
||||||
<p>Your comment will be removed everywhere on {{SITE_NAME}}. This action can be undone.</p>
|
<div class="py-4">
|
||||||
</div>
|
<i class="fad fa-trash-alt text-muted" style="font-size: 3.5rem;"></i>
|
||||||
<div class="modal-footer">
|
</div>
|
||||||
<button class="btn btn-link text-muted" data-bs-dismiss="modal">Cancel</button>
|
|
||||||
<button id="deleteCommentButton" class="btn btn-danger">Delete comment</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="modal fade" id="reportCommentModal" tabindex="-1" role="dialog" aria-labelledby="reportCommentModalTitle" aria-hidden="true">
|
<p>Your comment will be removed everywhere on {{SITE_NAME}}. This action can be undone.</p>
|
||||||
<div class="modal-dialog modal-dialog-centered" role="document">
|
|
||||||
<div class="modal-content">
|
|
||||||
<div class="modal-header">
|
|
||||||
<h5 class="modal-title">Report <span id="comment-author"></span>'s comment</h5>
|
|
||||||
<button class="close" data-bs-dismiss="modal" aria-label="Close">
|
|
||||||
<span aria-hidden="true"><i class="far fa-times"></i></span>
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<div class="" id="reportCommentFormBefore">
|
|
||||||
<div class="modal-body">
|
|
||||||
<div class="h6">We're sorry something here is wrong.</div>
|
|
||||||
<small class="form-text text-muted">Please enter a reason for reporting below.</small>
|
|
||||||
<pre></pre>
|
|
||||||
<input autocomplete="off" maxlength="100" id="reason-comment" class="form-control">
|
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<button class="btn btn-link text-muted" data-bs-dismiss="modal">Cancel</button>
|
<button class="btn btn-link text-muted" data-bs-dismiss="modal">Cancel</button>
|
||||||
<button id="reportCommentButton" class="btn btn-danger">Report comment</button>
|
<button id="deleteCommentButton" class="btn btn-danger">Delete comment</button>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="d-none" id="reportCommentFormAfter">
|
|
||||||
<div class="modal-body">
|
|
||||||
<div class="h6">Thank you for reporting this comment!</div>
|
|
||||||
<small class="form-text text-muted">We'll take it from here.</small>
|
|
||||||
</div>
|
|
||||||
<div class="modal-footer">
|
|
||||||
<button class="btn btn-primary" data-bs-dismiss="modal">Close</button>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
<style>
|
<div class="modal fade" id="reportCommentModal" tabindex="-1" role="dialog" aria-labelledby="reportCommentModalTitle" aria-hidden="true">
|
||||||
.mod:before {
|
<div class="modal-dialog modal-dialog-centered" role="document">
|
||||||
content: '(((';
|
<div class="modal-content">
|
||||||
}
|
<div class="modal-header">
|
||||||
|
<h5 class="modal-title">Report <span id="comment-author"></span>'s comment</h5>
|
||||||
.mod:after {
|
<button class="close" data-bs-dismiss="modal" aria-label="Close">
|
||||||
content: ')))';
|
<span aria-hidden="true"><i class="far fa-times"></i></span>
|
||||||
}
|
</button>
|
||||||
|
</div>
|
||||||
.mod {
|
<div class="" id="reportCommentFormBefore">
|
||||||
padding: 2px 5px 3px 5px;
|
<div class="modal-body">
|
||||||
border-radius: 5px;
|
<div class="h6">We're sorry something here is wrong.</div>
|
||||||
color:white!important;
|
<small class="form-text text-muted">Please enter a reason for reporting below.</small>
|
||||||
background: -moz-linear-gradient(180deg, red, orange, yellow, green, blue, indigo, violet);
|
<pre></pre>
|
||||||
background: -webkit-linear-gradient(left, red, orange, yellow, green, blue, indigo, violet );
|
<input autocomplete="off" maxlength="100" id="reason-comment" class="form-control">
|
||||||
text-shadow:-1px -1px 0 black,1px -1px 0 black,-1px 1px 0 black,1px 1px 0 black;
|
</div>
|
||||||
}
|
<div class="modal-footer">
|
||||||
|
<button class="btn btn-link text-muted" data-bs-dismiss="modal">Cancel</button>
|
||||||
.popover {
|
<button id="reportCommentButton" class="btn btn-danger">Report comment</button>
|
||||||
max-width: 50%;
|
</div>
|
||||||
box-shadow: 0 1rem 3rem rgba(0, 0, 0, .175);
|
</div>
|
||||||
border-color: #dadada;
|
|
||||||
}
|
<div class="d-none" id="reportCommentFormAfter">
|
||||||
|
<div class="modal-body">
|
||||||
@media (max-width: 991.98px) {
|
<div class="h6">Thank you for reporting this comment!</div>
|
||||||
.popover {
|
<small class="form-text text-muted">We'll take it from here.</small>
|
||||||
max-width: 90% !important;
|
</div>
|
||||||
}
|
<div class="modal-footer">
|
||||||
}
|
<button class="btn btn-primary" data-bs-dismiss="modal">Close</button>
|
||||||
|
</div>
|
||||||
.popover-arrow {
|
</div>
|
||||||
display: none !important;
|
</div>
|
||||||
}
|
</div>
|
||||||
|
</div>
|
||||||
.popover-user-profile {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
padding: 0;
|
|
||||||
background: var(--gray-600);
|
|
||||||
}
|
|
||||||
|
|
||||||
.popover-body {
|
|
||||||
padding: 0;
|
|
||||||
border-radius: .25rem;
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
.mt-n6 {
|
|
||||||
margin-top: -1.75rem !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.avatar-72 {
|
|
||||||
width: 72px;
|
|
||||||
height: 72px;
|
|
||||||
object-fit: cover;
|
|
||||||
}
|
|
||||||
|
|
||||||
.h-64 {
|
|
||||||
height: 64px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.object-cover {
|
|
||||||
object-fit: cover;
|
|
||||||
}
|
|
||||||
|
|
||||||
.text-black {
|
|
||||||
color: var(--black);
|
|
||||||
}
|
|
||||||
|
|
||||||
.smolbtn {
|
|
||||||
font-weight: 600;
|
|
||||||
font-size: .9rem;
|
|
||||||
border-radius: 0.2rem;
|
|
||||||
padding: 0.1rem 0.50rem 0rem 0.30rem;
|
|
||||||
background-color: var(--black) !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.smol {
|
|
||||||
font-size: 11.5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
|
||||||
.commentmob {
|
|
||||||
margin-top: 0.5rem !important;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.treasure {
|
|
||||||
margin-left: 10px;
|
|
||||||
margin-right: 3px;
|
|
||||||
margin-top: -2px;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|
||||||
{% if v %}
|
|
||||||
<script src="/static/assets/js/marked.js?a=220"></script>
|
|
||||||
<script src="/static/assets/js/comments_v.js?a=235"></script>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
<script src="/static/assets/js/clipboard.js?a=220"></script>
|
|
||||||
|
|
||||||
{% if v and v.admin_level > 1 %}
|
|
||||||
<script src="/static/assets/js/comments_admin.js?a=220"></script>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% include "expanded_image_modal.html" %}
|
|
||||||
|
|
||||||
<script src="/static/assets/js/comments+submission_listing.js?a=221"></script>
|
|
||||||
<script src="/static/assets/js/comments.js?a=221"></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 p.comments2 %}
|
|
||||||
{% if not (v and v.id==c[0]) %}
|
|
||||||
if ({{c[1]*1000}} > lastCount.t)
|
|
||||||
try {document.getElementById("reddot-{{c[2]}}").innerHTML = redhtml}
|
|
||||||
catch(e) {}
|
|
||||||
{% endif %}
|
|
||||||
{% endfor %}
|
|
||||||
}
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</script>
|
|
||||||
|
<style>
|
||||||
|
.mod:before {
|
||||||
|
content: '(((';
|
||||||
|
}
|
||||||
|
|
||||||
|
.mod:after {
|
||||||
|
content: ')))';
|
||||||
|
}
|
||||||
|
|
||||||
|
.mod {
|
||||||
|
padding: 2px 5px 3px 5px;
|
||||||
|
border-radius: 5px;
|
||||||
|
color:white!important;
|
||||||
|
background: -moz-linear-gradient(180deg, red, orange, yellow, green, blue, indigo, violet);
|
||||||
|
background: -webkit-linear-gradient(left, red, orange, yellow, green, blue, indigo, violet );
|
||||||
|
text-shadow:-1px -1px 0 black,1px -1px 0 black,-1px 1px 0 black,1px 1px 0 black;
|
||||||
|
}
|
||||||
|
|
||||||
|
.popover {
|
||||||
|
max-width: 50%;
|
||||||
|
box-shadow: 0 1rem 3rem rgba(0, 0, 0, .175);
|
||||||
|
border-color: #dadada;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 991.98px) {
|
||||||
|
.popover {
|
||||||
|
max-width: 90% !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.popover-arrow {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.popover-user-profile {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
padding: 0;
|
||||||
|
background: var(--gray-600);
|
||||||
|
}
|
||||||
|
|
||||||
|
.popover-body {
|
||||||
|
padding: 0;
|
||||||
|
border-radius: .25rem;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mt-n6 {
|
||||||
|
margin-top: -1.75rem !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.avatar-72 {
|
||||||
|
width: 72px;
|
||||||
|
height: 72px;
|
||||||
|
object-fit: cover;
|
||||||
|
}
|
||||||
|
|
||||||
|
.h-64 {
|
||||||
|
height: 64px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.object-cover {
|
||||||
|
object-fit: cover;
|
||||||
|
}
|
||||||
|
|
||||||
|
.text-black {
|
||||||
|
color: var(--black);
|
||||||
|
}
|
||||||
|
|
||||||
|
.smolbtn {
|
||||||
|
font-weight: 600;
|
||||||
|
font-size: .9rem;
|
||||||
|
border-radius: 0.2rem;
|
||||||
|
padding: 0.1rem 0.50rem 0rem 0.30rem;
|
||||||
|
background-color: var(--black) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.smol {
|
||||||
|
font-size: 11.5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
.commentmob {
|
||||||
|
margin-top: 0.5rem !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.treasure {
|
||||||
|
margin-left: 10px;
|
||||||
|
margin-right: 3px;
|
||||||
|
margin-top: -2px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
{% if v %}
|
||||||
|
<script src="/static/assets/js/marked.js?a=220"></script>
|
||||||
|
<script src="/static/assets/js/comments_v.js?a=235"></script>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
<script src="/static/assets/js/clipboard.js?a=220"></script>
|
||||||
|
|
||||||
|
{% if v and v.admin_level > 1 %}
|
||||||
|
<script src="/static/assets/js/comments_admin.js?a=220"></script>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% include "expanded_image_modal.html" %}
|
||||||
|
|
||||||
|
<script src="/static/assets/js/comments+submission_listing.js?a=221"></script>
|
||||||
|
<script src="/static/assets/js/comments.js?a=221"></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 p.comments2 %}
|
||||||
|
{% if not (v and v.id==c[0]) %}
|
||||||
|
if ({{c[1]*1000}} > lastCount.t)
|
||||||
|
try {document.getElementById("reddot-{{c[2]}}").innerHTML = redhtml}
|
||||||
|
catch(e) {}
|
||||||
|
{% endif %}
|
||||||
|
{% endfor %}
|
||||||
|
}
|
||||||
|
{% endif %}
|
||||||
|
</script>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% if offset %}
|
{% if offset %}
|
||||||
{% if p %}
|
{% if p %}
|
||||||
{% set pid = p.id %}
|
{% set pid = p.id %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<br>
|
<br>
|
||||||
<div id="viewmore-{{offset}}"><button id="viewbtn" class="btn btn-primary" onclick="viewmore({{pid}},'{{sort}}',{{offset}})">VIEW MORE COMMENTS</a></div>
|
<div id="viewmore-{{offset}}"><button id="viewbtn" class="btn btn-primary" onclick="viewmore({{pid}},'{{sort}}',{{offset}})">VIEW MORE COMMENTS</a></div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
</body>
|
</body>
|
Loading…
Reference in New Issue