2021-10-15 14:08:27 +00:00
< style >
html {
scroll-padding-top: 75px;
}
.comment {
overflow: hidden;
}
.comment .comment-body {
padding: 3px 0;
}
.comment-anchor:target {
2021-12-03 17:10:51 +00:00
transition: all 0.25s ease;
2021-12-03 17:10:21 +00:00
animation: blink normal 1s ease;
2021-11-24 20:57:16 +00:00
}
@keyframes blink {
0% {
2021-12-03 17:09:57 +00:00
background-color: rgba(0,0,0,0.1)
2021-11-24 20:57:16 +00:00
}
50% {
2021-12-03 17:09:57 +00:00
background-color: rgba(0,0,0,0.2)
2021-11-24 20:57:16 +00:00
}
100% {
2021-12-03 17:09:57 +00:00
background-color: rgba(0,0,0,0.1)
2021-11-24 20:57:16 +00:00
}
2021-10-15 14:08:27 +00:00
}
< / style >
2021-12-04 01:40:15 +00:00
{% if v %}
2021-10-15 14:08:27 +00:00
{% include "award_modal.html" %}
2021-12-04 01:21:10 +00:00
< script defer src = "https://cdn.jsdelivr.net/npm/marked@3.0.8/lib/marked.min.js" > < / script >
2021-12-04 02:42:45 +00:00
< script defer src = "/assets/js/comments_v.js?v=74" > < / script >
2021-12-04 01:40:15 +00:00
{% endif %}
2021-10-15 14:08:27 +00:00
2021-11-15 22:13:29 +00:00
{% if v and v.admin_level > 1 %}
2021-12-04 01:25:18 +00:00
< script defer src = "/assets/js/comments_admin.js?v=54" > < / script >
2021-10-15 14:08:27 +00:00
{% endif %}
2021-12-04 04:06:43 +00:00
< script defer src = "/assets/js/popover.js?v=9" > < / script >
< script defer src = "/assets/js/comments.js?v=5" > < / script >
2021-10-15 14:08:27 +00:00
{% include "expanded_image_modal.html" %}
2021-12-04 01:38:00 +00:00
< script defer >
2021-11-05 20:10:51 +00:00
function poll_vote(cid, parentid) {
2021-10-15 14:08:27 +00:00
{% if v %}
2021-11-05 20:10:51 +00:00
for(let el of document.getElementsByClassName('presult-'+parentid)) {
2021-11-24 20:34:23 +00:00
el.classList.remove('hidden');
2021-11-05 20:10:51 +00:00
}
2021-11-05 20:15:34 +00:00
for(let el of document.getElementsByClassName('presult')) {
2021-11-24 20:34:23 +00:00
el.classList.remove('hidden');
2021-11-05 20:15:34 +00:00
}
2021-10-15 14:08:27 +00:00
var type = document.getElementById(cid).checked;
var scoretext = document.getElementById('poll-' + cid);
var score = Number(scoretext.textContent);
if (type == true) scoretext.textContent = score + 1;
else scoretext.textContent = score - 1;
post('/vote/poll/' + cid + '?vote=' + type);
{% else %}
var myToast = new bootstrap.Toast(document.getElementById('toast-post-error'));
myToast.show();
document.getElementById('toast-post-error-text').innerText = "Only logged-in users can vote!";
{% endif %}
}
2021-12-04 01:38:00 +00:00
< / script >
2021-10-15 14:08:27 +00:00
{% macro single_comment(c, level=1) %}
{% if p and not (v and v.id==c.author_id) and (not v or v.highlightcomments) %}
2021-12-04 01:21:10 +00:00
< script defer >
2021-10-15 14:08:27 +00:00
comments = JSON.parse(localStorage.getItem("comment-counts")) || {}
lastCount = comments['{{p.id}}']
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 = "" data-bs-original-title = "Unread" > < / i > '
}
< / script >
{% endif %}
2021-12-04 01:38:00 +00:00
< script defer >
2021-10-15 14:08:27 +00:00
(() => {
const date = new Date({{c.created_utc*1000}});
document.getElementById('timestamp-{{c.id}}').title = date.toString();
2021-10-21 20:50:00 +00:00
2021-10-21 23:07:21 +00:00
{% if c.is_pinned %}
const pinned_info = document.getElementById('pinned-{{c.id}}')
{% if c.is_pinned.startswith('t:') %}
pinned_info.setAttribute("data-bs-original-title", `Pinned until ${new Date({{c.is_pinned[2:]}} * 1000).toString()}`)
{% else %}
pinned_info.setAttribute("data-bs-original-title", "Pinned by @{{c.is_pinned}}")
{%endif%}
2021-10-21 20:52:30 +00:00
{%endif%}
2021-10-21 20:50:00 +00:00
})()
2021-12-04 01:38:00 +00:00
< / script >
2021-10-15 14:08:27 +00:00
2021-10-18 16:49:15 +00:00
< div style = "display:none" id = "popover-{{c.id}}" >
2021-10-18 16:48:12 +00:00
< div class = "popover-user-profile" role = "tooltip" >
2021-12-04 02:59:04 +00:00
< img class = "w-100 h-64 object-cover lozad" src = "{{c.author.banner_url}}" >
2021-10-21 20:52:30 +00:00
< div class = "d-flex align-items-end px-3 mt-n6 mb-3" >
2021-12-04 23:25:15 +00:00
< img loading = "lazy" class = "avatar-72 rounded img-thumbnail shadow-sm lozad" src = "{{c.author.profile_url}}" >
2021-10-18 16:48:12 +00:00
< div class = "px-3 text-truncate" >
2021-10-21 20:52:30 +00:00
< h5 class = "text-truncate text-black" > {{c.author.username}}< / h5 >
2021-10-18 16:48:12 +00:00
< / div >
2021-10-25 13:55:56 +00:00
< / div >
2021-10-21 20:52:30 +00:00
< div class = "px-3" >
2021-10-25 02:44:54 +00:00
< span class = "popover-bio text-black" > {% if c.author.bio_html %}{{c.author.bio_html_eager | safe}}{% endif %}< / span >
2021-10-21 20:52:30 +00:00
< / div >
2021-11-07 15:41:35 +00:00
2021-11-07 15:45:15 +00:00
< div class = "ml-3 mr-3 my-2" >
2021-11-07 15:41:35 +00:00
{% for b in c.author.badges %}
2021-11-07 15:49:16 +00:00
{% if b.url %}
2021-12-04 02:59:04 +00:00
< a rel = "nofollow noopener noreferrer" href = "{{b.url}}" >
2021-12-04 23:25:15 +00:00
< img width = "32" loading = "lazy" src = "{{b.path}}" data-bs-toggle = "tooltip" data-bs-placement = "bottom" title = "" data-bs-original-title = "{{b.name}} - {{b.text}}" >
2021-12-04 02:59:04 +00:00
< / a >
2021-11-07 15:41:35 +00:00
{% else %}
2021-12-04 02:59:04 +00:00
< img width = "32" loading = "lazy" class = "lozad" src = "{{b.path}}" data-bs-toggle = "tooltip" data-bs-placement = "bottom" title = "" data-bs-original-title = "{{b.name}} - {{b.text}}" >
2021-11-07 15:41:35 +00:00
{% endif %}
{% endfor %}
< / div >
2021-10-21 23:54:53 +00:00
< div class = "border-top d-flex align-items-center p-3 gap-3 smol" >
2021-10-18 16:48:12 +00:00
< span >
2021-10-21 20:52:30 +00:00
< strong class = "text-black" > {{c.author.post_count}}< / strong >
< span class = "text-black" > posts< / span >
2021-10-18 16:48:12 +00:00
< / span >
2021-10-18 18:09:02 +00:00
< span class = "ml-3" >
2021-10-21 20:52:30 +00:00
< strong class = "text-black" > {{c.author.comment_count}}< / strong >
< span class = "text-black" > comments< / span >
2021-10-18 16:48:12 +00:00
< / span >
2021-10-18 18:09:02 +00:00
< span class = "ml-3" >
2021-10-18 16:49:15 +00:00
< strong class = "text-black" > {{c.author.coins}}< / strong >
2021-10-18 18:09:02 +00:00
< span class = "text-black" > coins< / span >
2021-10-18 16:51:38 +00:00
< / span >
2021-10-18 16:50:46 +00:00
2021-10-18 16:49:15 +00:00
< a { % if v % } href = "{{c.author.url}}" { % else % } href = "/logged_out{{c.author.url}}" { % endif % } target = "_blank" class = "ml-auto text-decoration-none" >
2021-10-21 20:52:30 +00:00
View
< i class = "fas fa-arrow-right fa-sm px-1" > < / i >
2021-10-18 16:48:12 +00:00
< / a >
2021-10-21 20:52:30 +00:00
< / div >
2021-10-18 16:48:12 +00:00
< / div >
< / div >
2021-10-15 14:08:27 +00:00
{% set ups=c.upvotes %}
{% set downs=c.downvotes %}
{% set score=ups-downs %}
2021-11-15 22:13:29 +00:00
{% if v and (v.shadowbanned or v.admin_level > 1) %}
2021-10-15 14:08:27 +00:00
{% set replies=c.replies3 %}
{% else %}
{% set replies=c.replies %}
{% endif %}
2021-10-22 23:50:00 +00:00
{% if (c.is_banned or c.deleted_utc > 0 or c.is_blocking) and not (v and v.admin_level>0) and not (v and v.id==c.author_id) %}
2021-10-15 14:08:27 +00:00
< div id = "comment-{{c.id}}" class = "comment" >
2021-11-24 20:34:23 +00:00
< span class = "comment-collapse-desktop hidden d-md-block" style = "border-left: 2px solid #{{c.author.namecolor}};" onclick = "collapse_comment('{{c.id}}')" > < / span >
2021-10-15 14:08:27 +00:00
< div class = "comment-body" >
< div id = "comment-{{c.id}}-only" >
< div class = "user-info" >
2021-10-29 02:57:28 +00:00
< span class = "comment-collapse-icon" onclick = "collapse_comment('{{c.id}}')" > < / span >
2021-12-03 03:58:10 +00:00
{% if standalone and c.over_18 %}< span class = "badge badge-red" > +18< / span > {% endif %}
2021-10-29 02:32:23 +00:00
{% if c.is_banned %}removed by @{{c.ban_reason}}{% elif c.deleted_utc > 0 %}Deleted by author{% elif c.is_blocking %}You are blocking @{{c.author.username}}{% endif %}
2021-10-15 14:08:27 +00:00
< / div >
< / div >
{% if render_replies %}
{% if level< 10 % }
< div id = "replies-of-{{c.id}}" class = "" >
{% set standalone=False %}
{% for reply in replies %}
{{single_comment(reply, level=level+1)}}
{% endfor %}
< / div >
2021-11-14 01:50:41 +00:00
{% elif "notifications" in request.path %}
2021-11-24 20:34:23 +00:00
< div id = "replies-of-{{c.id}}" class = "hidden d-md-block" >
2021-11-14 01:50:41 +00:00
{% set standalone=False %}
{% for reply in replies %}
{{single_comment(reply, level=level+1)}}
{% endfor %}
< / div >
2021-11-24 20:34:23 +00:00
< div id = "morecomment-{{c.id}}" class = "md:hidden mt-2 more-comments text-small" >
2021-11-16 04:14:28 +00:00
< a { % if v % } href = "{{c.shortlink}}" { % else % } href = "/logged_out{{c.shortlink}}" { % endif % } > More comments < i class = "fas fa-long-arrow-right ml-1" > < / i > < / a >
2021-11-14 01:50:41 +00:00
< / div >
2021-10-15 14:08:27 +00:00
{% elif replies %}
2021-11-12 18:31:26 +00:00
< div id = "morecomment-{{c.id}}" class = "mt-2 more-comments text-small" >
2021-11-16 04:14:28 +00:00
< a { % if v % } href = "{{c.shortlink}}" { % else % } href = "/logged_out{{c.shortlink}}" { % endif % } > More comments < i class = "fas fa-long-arrow-right ml-1" > < / i > < / a >
2021-10-15 14:08:27 +00:00
< / div >
{% endif %}
{% endif %}
< / div >
< / div >
{% else %}
{% set score=c.score %}
{% if v %}
{% set voted=c.voted %}
{% else %}
{% set voted=-2 %}
{% endif %}
{% if standalone and level==1 %}
2021-12-01 21:32:27 +00:00
< div class = "post-info font-bold mt-5 mb-1" >
{% if c.post and c.post.over_18 %}
< span class = "badge badge-red" > +18< / span >
2021-10-15 14:08:27 +00:00
{% endif %}
2021-12-01 21:32:27 +00:00
< div >
{% if c.post %}
{% if c.author_id==v.id and c.child_comments and is_notification_page%}
< span >
Comment {{'Replies' if (c.child_comments | length)>1 else 'Reply'}}:
< a href = "{{c.post.permalink}}" class = "text-gray-700 hover:text-gray-900" > {{c.post.realtitle(v) | safe}}< / a >
< / span >
{% elif c.post.author_id==v.id and c.level == 1 and is_notification_page%}
< span > Post Reply:
< a href = "{{c.post.permalink}}" class = "text-gray-700 hover:text-gray-900" > {{c.post.realtitle(v) | safe}}< / a >
< / span >
{% elif is_notification_page and c.parent_submission in v.subscribed_idlist() %}
< span > Subscribed Thread:
< a href = "{{c.post.permalink}}" class = "text-gray-700 hover:text-gray-900" > {{c.post.realtitle(v) | safe}}< / a > < / span >
{% elif is_notification_page %}
< span > Username Mention:
< a href = "{{c.post.permalink}}" class = "text-gray-700 hover:text-gray-900" > {{c.post.realtitle(v) | safe}}< / a >
< / span >
{% else %}
< span >
< a href = "{{c.post.permalink}}" class = "text-gray-700 hover:text-gray-900" > {{c.post.realtitle(v) | safe}}< / a >
< / span >
{% endif %}
{% elif c.author_id==NOTIFICATIONS_ID or c.author_id==AUTOJANNY_ID %}
< span > {{'SITE_NAME' | app_config}} Notification< / span >
{% else %}
{% if c.sentto == 0 %}
< span > Sent to admins< / span >
{% else %}
< span > Sent to @{{c.senttouser.username}}< / span >
{% endif %}
{% endif %}
< / div >
2021-10-15 14:08:27 +00:00
< / div >
{% endif %}
2021-12-04 02:46:29 +00:00
< div id = "comment-{{c.id}}" class = "anchor {% if c.unread %}unread{% endif %} relative flex mt-4 md:mt-6 {% if standalone and level==1 %} mt-0{% endif %}{% if c.collapse_for_user(v) or (standalone and c.over_18 and not (v and v.over_18)) %} collapsed{% endif %}" >
2021-10-15 14:08:27 +00:00
2021-11-24 20:34:23 +00:00
< span class = "comment-collapse-desktop hidden d-md-block" { % if not c . unread % } style = "border-left: 2px solid #{{c.author.namecolor}};" { % endif % } onclick = "collapse_comment('{{c.id}}')" > < / span >
2021-12-03 18:02:45 +00:00
< div class = "flex flex-col flex-shrink-0 items-center mr-2.5 {{ 'md:mr-4' if not c.parent_comment_id or standalone else 'md:mr-3' }}" >
2021-12-02 00:43:01 +00:00
< div class = "relative {{ 'santa' if c.author.patron else 'cap' }}" >
2021-12-01 01:39:40 +00:00
{% if standalone or level==1 %}
2021-12-04 02:46:29 +00:00
< img loading = "lazy" src = "{{ c.author.profile_url }}" class = "hidden md:block flex-shrink-0 w-14 h-14 mb-2 p-[3px] bg-white border border-gray-300 object-cover lozad" alt = "{{ c.author.username }} avatar" / >
2021-12-01 01:39:40 +00:00
{% else %}
2021-12-04 02:46:29 +00:00
< img loading = "lazy" src = "{{ c.author.profile_url }}" class = "hidden md:block flex-shrink-0 w-9 h-9 mb-2 p-[3px] bg-white border border-gray-300 object-cover lozad" alt = "{{ c.author.username }} avatar" / >
2021-12-01 01:39:40 +00:00
{% endif %}
< / div >
2021-12-03 18:07:12 +00:00
< button onclick = "collapse_comment('{{c.id}}')" class = "md:ml-4 mb-2 w-[1px] md:w-4 h-full border-l border-gray-400" > < / button >
2021-11-24 20:34:23 +00:00
< / div >
< div class = "w-full" >
2021-10-15 14:08:27 +00:00
2021-12-04 21:05:16 +00:00
< div id = "{% if comment_info and comment_info.id == c.id %}context{%else%}comment-{{c.id}}-only{% endif %}" class = "comment-anchor relative {% if comment_info and comment_info.id == c.id %}context{%endif%}{% if c.is_banned %} banned{% endif %}{% if c.deleted_utc %} deleted{% endif %}" >
2021-10-15 14:08:27 +00:00
< div class = "user-info" >
2021-11-24 20:34:23 +00:00
2021-10-29 02:57:28 +00:00
< span class = "comment-collapse-icon" onclick = "collapse_comment('{{c.id}}')" > < / span >
2021-10-15 14:08:27 +00:00
< span id = "reddot-{{c.id}}" > < / span >
2021-10-16 12:47:24 +00:00
{% if c.awards %}
{% for a in c.awards %}
< i class = "{{a.class_list}} px-1" data-bs-toggle = "tooltip" data-bs-placement = "bottom" title = "" data-bs-original-title = "{{a.title}} Award given by @{{a.user.username}}" > < / i >
{% endfor %}
{% endif %}
2021-10-15 14:08:27 +00:00
2021-11-24 20:34:23 +00:00
{% if c.post and c.post.award_count("ghosts") %}
< span > 👻< / span >
{% else %}
< div class = "flex items-center space-x-2 md:-ml-2 mb-1 text-sm text-gray-500 leading-normal" >
2021-12-02 00:43:01 +00:00
< div class = "relative md:hidden {{ 'santa' if c.author.patron else 'cap' }}" >
2021-12-04 02:46:29 +00:00
< img loading = "lazy" src = "{{ c.author.profile_url }}" class = "w-9 h-9 p-[3px] bg-white border border-gray-300 object-cover lozad" alt = "{{ c.author.username }} avatar" / >
2021-12-01 01:39:54 +00:00
< / div >
2021-11-24 20:34:23 +00:00
2021-11-30 23:05:21 +00:00
< a class = "text-sm font-bold" data-bs-placement = "bottom" data-bs-toggle = "popover" data-bs-trigger = "focus" data-content-id = "popover-{{c.id}}" tabindex = "0" style = "color:#{{c.author.namecolor}};" >
2021-11-24 20:34:23 +00:00
{% if c.author.patron and not c.distinguish_level %}
< span class = "patron" style = "background-color:#{{c.author.namecolor}};" >
{{c.author.username}}
< / span >
{% elif c.distinguish_level and 'rama' in request.host %}
< span class = "mod" style = "background-color:#{{c.author.namecolor}};" >
{{c.author.username}}
< / span >
{% else %}
< span >
{{c.author.username}}
< / span >
{% endif %}
< / a >
{% if c.author.customtitle %}
< bdi style = "color: #{{c.author.titlecolor}}" >
{{c.author.customtitle | safe }}
< / bdi >
{% endif %}
{% if c.author.verified %}
< i class = "fas fa-badge-check align-middle ml-1" style = "color:{% if c.author.verifiedcolor %}#{{c.author.verifiedcolor}}{% else %}#1DA1F2{% endif %}" data-bs-toggle = "tooltip" data-bs-placement = "bottom" title = "" data-bs-original-title = "{{c.author.verified}}" > < / i >
{% endif %}
2021-10-15 14:08:27 +00:00
{% if c.bannedfor and c.author.banned_by %}
< a href = "javascript:void(0)" > < i class = "fad fa-gavel text-danger" data-bs-toggle = "tooltip" data-bs-placement = "bottom" title = "" data-bs-original-title = "User was banned for this comment by @{{c.author.banned_by.username}}" > < / i > < / a >
{% endif %}
2021-11-24 20:34:23 +00:00
{% if c.active_flags %}
< a class = "btn btn-primary" style = "padding:1px 5px; font-size:10px;" href = "javascript:void(0)" onclick = "document.getElementById('flaggers-{{c.id}}').classList.toggle('hidden')" > {{c.active_flags}} Reports< / a >
2021-10-15 14:08:27 +00:00
{% endif %}
2021-11-24 20:34:23 +00:00
{% if c.over_18 %}
< span class = "badge badge-danger text-small-extra mr-1" > +18< / span >
{% endif %}
{% if v and v.admin_level==6 and c.author.shadowbanned %}
< i class = "fas fa-user-times text-admin" data-bs-toggle = "tooltip" data-bs-placement = "bottom" title = "" data-bs-original-title = "Shadowbanned by @{{c.author.shadowbanned}}" > < / i >
{% endif %}
{% if c.is_pinned %}
2021-12-04 04:05:17 +00:00
< i id = 'pinned-{{c.id}}' class = "fas fa-thumbtack fa-rotate--45 text-admin" data-bs-toggle = "tooltip" data-bs-placement = "bottom" title = "" data-bs-original-title = "Pinned {% if c.is_pinned.startswith('t:') %}until {{c.is_pinned[2:]}}{% else %}by @{{c.is_pinned}}{%endif%}" > < / i >
2021-11-24 20:34:23 +00:00
{% endif %}
{% if c.distinguish_level %}
< i class = "fas fa-broom text-admin" data-bs-toggle = "tooltip" data-bs-placement = "bottom" title = "" data-bs-original-title = "{{'SITE_NAME' | app_config}} Admin, speaking officially" > < / i >
{% endif %}
{% if c.is_op %}
< i class = "fas fa-microphone-stand text-info" data-bs-toggle = "tooltip" data-bs-placement = "bottom" title = "" data-bs-original-title = "OP" > < / i >
{% endif %}
{% if c.is_bot %}
< i class = "fad fa-robot text-info" data-bs-toggle = "tooltip" data-bs-placement = "bottom" title = "" data-bs-original-title = "Bot" > < / i >
{% endif %}
{% if c.is_blocking %}
< i class = "fas fa-user-minus text-warning" data-bs-toggle = "tooltip" data-bs-placement = "bottom" title = "" data-bs-original-title = "You're blocking this user, but you can see this comment because you're an admin" > < / i >
{% endif %}
{% if c.is_blocked %}
< i class = "fas fa-user-minus text-danger" data-bs-toggle = "tooltip" data-bs-placement = "bottom" title = "" data-bs-original-title = "This user is blocking you." > < / i >
{% endif %}
{% if c.parent_comment_id and not standalone and level< =7 %}
< a href = "#comment-{{ c.parent_comment_id }}-only" class = "text-gray-500 hover:text-gray-400 user-name-reply" >
< i class = "fas fa-reply fa-sm fa-fw fa-flip-horizontal" > < / i >
2021-12-03 18:08:43 +00:00
< span class = "hidden sm:inline-block" > replying to< / span >
2021-11-30 23:05:21 +00:00
< span class = "font-bold" >
2021-11-24 20:34:23 +00:00
{% if c.post and c.post.award_count("ghosts") %}
👻
{% else %}
{{ c.parent_comment.author.username }}{% endif %}
< / span >
< / a >
{% endif %}
2021-12-04 04:02:37 +00:00
< span onmouseover = "timestamp('timestamp-{{c.id}}','{{c.created_utc}}')" id = "timestamp-{{c.id}}" data-bs-toggle = "tooltip" data-bs-placement = "bottom" class = "time-stamp" >
2021-11-24 20:34:23 +00:00
{{c.age_string}}
< / span >
2021-10-15 14:08:27 +00:00
{% if c.edited_utc %}
2021-12-04 04:03:17 +00:00
< span onmouseover = "timestamp('time-edit-{{c.id}}','{{c.edited_utc}}')" id = "time-edit-{{c.id}}" class = "time-edited italic" >
2021-11-24 20:34:23 +00:00
Edited {{c.edited_string}}
< / span >
2021-10-15 14:08:27 +00:00
{% endif %}
2021-11-24 20:34:23 +00:00
< / div >
{% endif %}
2021-10-15 14:08:27 +00:00
< / div >
{% if c.active_flags %}
2021-11-24 20:34:23 +00:00
< div id = "flaggers-{{c.id}}" class = "flaggers hidden" >
2021-10-15 14:08:27 +00:00
< strong > < i class = "far fa-fw fa-flag" > < / i > Reported by:< / strong >
< pre > < / pre >
< ul style = "padding-left:20px; margin-bottom: 0;" >
{% for f in c.ordered_flags %}
2021-11-15 22:22:12 +00:00
< li > < a style = "font-weight:bold" href = "{{f.user.url}}" > {{f.user.username}}< / a > {% if f.reason %}: {{f.reason | safe}}{% endif %} {% if v and v.admin_level > 1 %}< a href = "javascript:void(0)" onclick = "post_toast('/del_report/c{{ f.id }}')" > [remove]< / a > {% endif %}< / li >
2021-10-15 14:08:27 +00:00
{% endfor %}
< / ul >
< / div >
{% endif %}
{% if c.is_banned and c.ban_reason %}
2021-12-01 02:23:41 +00:00
< div id = "comment-banned-warning" class = "comment-text text-red-600 mb-0" > Removed by @{{c.ban_reason}}< / div >
2021-10-15 14:08:27 +00:00
{% endif %}
2021-12-04 21:05:16 +00:00
< div id = "comment-text-{{c.id}}" class = "comment-text text-black mb-0 {% if c.award_count(" candycane " ) % } candycane { % endif % } { % if c . award_count ( " snow " ) % } snow { % endif % } " >
2021-10-15 14:08:27 +00:00
{{c.realbody(v) | safe}}
{% if c.options %}
2021-11-05 20:10:51 +00:00
{% for o in c.options %}
2021-10-15 14:08:27 +00:00
< div class = "custom-control" >
2021-11-05 20:10:51 +00:00
< input type = "checkbox" class = "custom-control-input" id = "{{o.id}}" name = "option" { % if o . poll_voted ( v ) % } checked { % endif % } onchange = "poll_vote('{{o.id}}', '{{c.id}}')" >
2021-11-24 20:34:23 +00:00
< label class = "custom-control-label" for = "{{o.id}}" > {{o.body_html | safe}}< span class = "presult-{{c.id}} {% if not c.total_poll_voted(v) %}hidden{% endif %}" > - < a href = "/votes?link=t3_{{o.id}}" > < span id = "poll-{{o.id}}" > {{o.upvotes}}< / span > votes< / a > < / span > < / label >
2021-10-15 14:08:27 +00:00
< / div >
{% endfor %}
< pre > < / pre >
{% endif %}
2021-11-06 15:21:05 +00:00
{% if c.author.sig_html and (c.author_id == 1904 or not (v and v.sigs_disabled)) %}
< hr >
{{c.author.sig_html | safe}}
{% endif %}
2021-11-18 14:21:19 +00:00
{% if not c.parent_submission and c.author_id!=NOTIFICATIONS_ID and c.author_id!=AUTOJANNY_ID and c.author_id!=v.id %}
2021-11-24 20:34:23 +00:00
< a class = "btn btn-primary" href = "javascript:void(0)" onclick = "document.getElementById('reply-m-{{c.id}}').classList.toggle('hidden')" > Reply< / a >
2021-10-15 14:08:27 +00:00
< pre > < / pre >
2021-11-24 20:34:23 +00:00
< div id = "reply-m-{{c.id}}" class = "hidden" >
2021-10-15 14:08:27 +00:00
< div id = "comment-form-space-{{c.id}}" class = "comment-write collapsed child" >
< form id = "reply-to-message-{{c.id}}" action = "/reply" method = "post" class = "input-group" enctype = "multipart/form-data" >
< input type = "hidden" name = "formkey" value = "{{v.formkey}}" >
2021-12-01 16:38:05 +00:00
< textarea maxlength = "10000" name = "body" form = "reply-to-t3_{{c.id}}" data-id = "{{c.id}}" class = "comment-box form-input" id = "reply-form-body-{{c.id}}" aria-label = "With textarea" rows = "3" > < / textarea >
2021-10-15 14:08:27 +00:00
< div class = "comment-format" id = "comment-format-bar-{{c.id}}" >
< label class = "btn btn-secondary format d-inline-block m-0" for = "gif-reply-btn-{{c.id}}" >
< i id = "emoji-reply-btn-{{c.id}}" class = "fas fa-smile-beam" onclick = "loadEmojis('reply-form-body-{{c.id}}')" aria-hidden = "true" data-bs-toggle = "modal" data-bs-target = "#emojiModal" data-bs-toggle = "tooltip" data-bs-placement = "bottom" title = "" data-bs-original-title = "Add Emoji" > < / i >
< / label >
2021-11-24 20:34:23 +00:00
< a href = "javascript:void(0)" onclick = "document.getElementById('reply-m-{{c.id}}').classList.add('hidden')" class = "hidden d-md-block btn btn-link text-muted ml-auto cancel-form" > Cancel< / a >
< a id = "save-reply-to-{{c.id}}" class = "hidden d-md-block btn btn-primary text-muted ml-2" onclick = "post_reply('{{c.id}}');" href = "javascript:void(0)" > Reply< / a >
2021-10-15 14:08:27 +00:00
< / div >
2021-11-24 20:34:23 +00:00
< a href = "javascript:void(0)" onclick = "document.getElementById('reply-m-{{c.id}}').classList.add('hidden')" class = "md:hidden btn btn-link text-muted ml-auto cancel-form" > Cancel< / a >
< a id = "save-reply-to-{{c.id}}" class = "md:hidden btn btn-primary text-white ml-2" onclick = "post_reply('{{c.id}}');" href = "javascript:void(0)" > Reply< / a >
2021-10-15 14:08:27 +00:00
< / form >
< / div >
< / div >
{% endif %}
< / div >
{% if c.parent_submission %}
2021-11-24 20:34:23 +00:00
<!-- Author's edit comment form -->
2021-10-15 14:08:27 +00:00
{% if v and v.id==c.author_id %}
2021-11-24 20:34:23 +00:00
{% include "/comments/CommentEditForm.html" %}
2021-10-15 14:08:27 +00:00
{% endif %}
2021-11-24 20:34:23 +00:00
<!-- Comment actions -->
< div id = "comment-{{c.id}}-actions" class = "py-3 {% if voted==1 %} upvoted{% elif voted==-1 %} downvoted{% endif %}" >
{% include "/comments/CommentActions.html" %}
2021-10-15 14:08:27 +00:00
< / div >
{% endif %}
< / div >
2021-11-24 20:34:23 +00:00
< div id = "reply-to-{{c.id}}" class = "hidden" >
{% include "/comments/CommentReplyForm.html" %}
< / div >
2021-10-15 14:08:27 +00:00
{% if render_replies %}
{% if level< 10 % }
< div id = "replies-of-{{c.id}}" >
{% for reply in replies %}
{{single_comment(reply, level=level+1)}}
{% endfor %}
< / div >
2021-11-30 17:35:50 +00:00
{% elif replies and "notifications" in request.path %}
2021-11-24 20:34:23 +00:00
< div id = "replies-of-{{c.id}}" class = "hidden md:block" >
2021-11-14 01:50:41 +00:00
{% set standalone=False %}
{% for reply in replies %}
{{single_comment(reply, level=level+1)}}
{% endfor %}
< / div >
2021-11-24 20:34:23 +00:00
< div id = "morecomment-{{c.id}}" class = "md:hidden mt-2 more-comments text-small" >
2021-11-16 04:14:28 +00:00
< a { % if v % } href = "{{c.shortlink}}" { % else % } href = "/logged_out{{c.shortlink}}" { % endif % } > More comments < i class = "fas fa-long-arrow-right ml-1" > < / i > < / a >
2021-11-14 01:50:41 +00:00
< / div >
2021-10-15 14:08:27 +00:00
{% elif replies %}
2021-11-12 18:31:26 +00:00
< div id = "morecomment-{{c.id}}" class = "mt-2 more-comments text-small" >
2021-11-18 14:21:19 +00:00
< a { % if v % } href = "{{c.shortlink}}" { % else % } href = "/logged_out{{c.shortlink}}" { % endif % } > More comments < i class = "fas fa-long-arrow-right ml-1" > < / i > < / a >
2021-10-15 14:08:27 +00:00
< / div >
{% endif %}
{% endif %}
< / div >
2021-11-24 20:34:23 +00:00
{% include "/modals/ModalCommentActions.html" %}
2021-10-15 14:08:27 +00:00
< / div >
{% endif %}
{% endmacro %}
{% for comment in comments %}
{{single_comment(comment)}}
{% endfor %}
{% if v %}
{% include "gif_modal.html" %}
{% include "emoji_modal.html" %}
2021-11-15 22:13:29 +00:00
{% if v.admin_level > 1 %}
2021-10-15 14:08:27 +00:00
{% include "ban_modal.html" %}
{% endif %}
< 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-content" >
< div class = "modal-header" >
< h5 class = "modal-title" > Delete comment?< / h5 >
< button type = "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 = "modal-body text-center" >
< div class = "py-4" >
< i class = "fad fa-trash-alt text-muted" style = "font-size: 3.5rem;" > < / i >
< / div >
< p > Your comment will be removed everywhere on {{'SITE_NAME' | app_config}}. This action can be undone.< / p >
< / div >
< div class = "modal-footer" >
< button type = "button" class = "btn btn-link text-muted" data-bs-dismiss = "modal" > Cancel< / button >
2021-10-18 02:38:43 +00:00
< button id = "deleteCommentButton" class = "btn btn-danger" > Delete comment< / button >
2021-10-15 14:08:27 +00:00
< / div >
< / div >
< / div >
< / div >
2021-12-01 16:33:21 +00:00
{% include "/modals/ModalReportComment.html" %}
2021-10-15 14:08:27 +00:00
{% endif %}
< 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;
}
2021-10-18 16:48:12 +00:00
.popover {
2021-10-23 19:40:49 +00:00
max-width: 100%;
2021-10-18 16:48:12 +00:00
box-shadow: 0 1rem 3rem rgba(0, 0, 0, .175);
border-color: #dadada;
}
.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;
}
.smolbtn {
font-weight: 600;
font-size: .9rem;
border-radius: 0.2rem;
padding: 0.1rem 0.50rem 0rem 0.30rem;
background-color: var(--black) !important;
}
2021-10-18 17:14:39 +00:00
.smol {
2021-10-18 17:21:50 +00:00
font-size: 11.5px;
2021-10-18 17:14:39 +00:00
}
2021-10-15 14:08:27 +00:00
< / style >
2021-09-15 05:53:37 +00:00
< / body >