2021-12-06 05:30:26 +00:00
{% if v %}
{% include "award_modal.html" %}
{% endif %}
2021-12-14 22:48:37 +00:00
< style >
html {
scroll-padding-top: 75px;
2021-12-06 05:30:26 +00:00
}
2021-12-14 22:48:37 +00:00
.comment {
overflow: hidden;
}
.comment .comment-body {
padding: 3px 0;
}
.comment-anchor {
margin-top: -75px;
padding: 1px;
}
.comment-anchor::before {
content: '';
display: block;
padding-top: 75px;
}
.comment-anchor:target {
background: rgba(255,255,255,0.2);
padding: 12px;
}
< / style >
2021-12-06 05:30:26 +00:00
2021-12-14 22:48:37 +00:00
< div style = "display:none" id = "popover" >
< div class = "popover-user-profile" role = "tooltip" >
< 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" >
< img loading = "lazy" class = "pop-picture avatar-72 rounded img-thumbnail shadow-sm" >
< div class = "px-3 text-truncate" >
< 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 >
2021-10-15 14:08:27 +00:00
2021-12-14 22:48:37 +00:00
< div class = "pop-badges ml-3 mr-3 my-2" >
< / div >
2021-10-15 14:08:27 +00:00
2021-12-18 19:09:52 +00:00
< div class = "border-top d-flex align-items-center p-3 gap-3 smol" >
2021-12-14 22:48:37 +00:00
< span >
2021-12-18 19:09:52 +00:00
< strong class = "pop-postcount text-black" > < / strong >
< span class = "text-black" > posts< / span >
2021-12-14 22:48:37 +00:00
< / span >
< span class = "ml-3" >
2021-12-18 19:09:52 +00:00
< strong class = "pop-commentcount text-black" > < / strong >
< span class = "text-black" > comments< / span >
2021-12-14 22:48:37 +00:00
< / span >
< span class = "ml-3" >
< strong class = "pop-coins text-black" > < / strong >
< span class = "text-black" > coins< / span >
2021-12-18 19:09:52 +00:00
< / span >
2021-12-14 22:48:37 +00:00
< a { % if v and v . newtab % } target = "_blank" { % endif % } class = "pop-viewmore ml-auto text-decoration-none" >
2021-12-18 19:09:52 +00:00
View
< i class = "fas fa-arrow-right fa-sm px-1" > < / i >
2021-12-14 22:48:37 +00:00
< / a >
2021-12-18 19:09:52 +00:00
< / div >
2021-12-14 22:48:37 +00:00
< / div >
< / div >
2021-12-06 05:30:26 +00:00
2021-12-14 22:48:37 +00:00
{% macro single_comment(c, level=1) %}
2021-12-06 05:30:26 +00:00
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-12-14 22:48:37 +00:00
< span class = "comment-collapse-desktop d-none 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-14 22:48:37 +00:00
{% if standalone and c.over_18 %}< span class = "badge badge-danger" > +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 %}
2021-12-05 03:18:12 +00:00
{% if level< 10 % }
2021-10-15 14:08:27 +00:00
< div id = "replies-of-{{c.id}}" class = "" >
{% set standalone=False %}
{% for reply in replies %}
{{single_comment(reply, level=level+1)}}
{% endfor %}
< / div >
2021-12-14 22:48:37 +00:00
{% elif replies and "notifications" in request.path %}
< div id = "replies-of-{{c.id}}" class = "d-none 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-12-14 22:48:37 +00:00
< div id = "morecomment-{{c.id}}" class = "d-md-none mt-2 more-comments text-small" >
< a href = "{{c.shortlink}}" > 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-12-14 22:48:37 +00:00
< button id = "btn-{{c.id}}" class = "d-none d-md-block btn btn-primary" onclick = "morecomments('{{c.id}}')" > More comments< / button >
< a class = "d-md-none" href = "{{c.shortlink}}" > 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-14 22:48:37 +00:00
< div class = "post-info mt-5 mb-1 mr-2" >
{% if c.post and c.post.over_18 %}< span class = "badge badge-danger text-small-extra mr-1" > +18< / span > {% endif %}
< span class = "align-top" >
{% if c.post %}
{% if c.author_id==v.id and c.child_comments and is_notification_page%}
< span class = "font-weight-bold" > Comment {{'Replies' if (c.child_comments | length)>1 else 'Reply'}}: < a href = "{{c.post.permalink}}" > {{c.post.realtitle(v) | safe}}< / a > < / span >
{% elif c.post.author_id==v.id and c.level == 1 and is_notification_page%}
< span class = "font-weight-bold" > Post Reply: < a href = "{{c.post.permalink}}" > {{c.post.realtitle(v) | safe}}< / a > < / span >
{% elif is_notification_page and c.parent_submission in v.subscribed_idlist() %}
< span class = "font-weight-bold" > Subscribed Thread: < a href = "{{c.post.permalink}}" > {{c.post.realtitle(v) | safe}}< / a > < / span >
{% elif is_notification_page %}
< span class = "font-weight-bold" > Username Mention: < a href = "{{c.post.permalink}}" > {{c.post.realtitle(v) | safe}}< / a > < / span >
{% else %}
< span class = "font-weight-bold" > < a href = "{{c.post.permalink}}" > {{c.post.realtitle(v) | safe}}< / a > < / span >
2021-12-06 05:30:26 +00:00
{% endif %}
2021-12-14 22:48:37 +00:00
{% elif c.author_id==NOTIFICATIONS_ID or c.author_id==AUTOJANNY_ID %}
< span class = "font-weight-bold" > {{'SITE_NAME' | app_config}} Notification< / span >
2021-12-10 02:47:43 +00:00
{% else %}
2021-12-14 22:48:37 +00:00
{% if c.sentto == 0 %}
< span class = "font-weight-bold" > Sent to admins< / span >
{% else %}
< span class = "font-weight-bold" > Sent to @{{c.senttouser.username}}< / span >
{% endif %}
2021-12-10 02:45:03 +00:00
{% endif %}
2021-12-14 22:48:37 +00:00
< / span >
< / div >
{% endif %}
2021-12-10 00:07:10 +00:00
2021-12-17 17:56:44 +00:00
< div id = "comment-{{c.id}}" class = "anchor {% if c.unread %}unread{% endif %} comment {% if standalone and level==1 %} mt-0{% endif %}{% if c.collapse_for_user(v) and request.path != '/admin/removed/comments' or (standalone and c.over_18 and not (v and v.over_18)) %} collapsed{% endif %}" style = "border-left: 2px solid #{{c.author.namecolor}}; {% if c.unread %}padding: 10px 10px 10px !important;{% endif %}" >
2021-12-06 05:30:26 +00:00
2021-12-14 22:48:37 +00:00
< span class = "comment-collapse-desktop d-none d-md-block" { % if not c . unread % } style = "border-left: 2px solid #{{c.author.namecolor}};" { % endif % } onclick = "collapse_comment('{{c.id}}')" > < / span >
< div class = "comment-body" >
2021-12-05 02:10:21 +00:00
2021-12-14 22:48:37 +00:00
< div id = "{% if comment_info and comment_info.id == c.id %}context{%else%}comment-{{c.id}}-only{% endif %}" class = "comment-anchor {% if comment_info and comment_info.id == c.id %}context{%endif%}{% if c.is_banned %} banned{% endif %}{% if c.deleted_utc %} deleted{% endif %}" >
2021-12-05 02:10:21 +00:00
2021-12-14 22:48:37 +00:00
< div class = "user-info" >
< span class = "comment-collapse-icon" onclick = "collapse_comment('{{c.id}}')" > < / span >
2021-12-05 01:52:53 +00:00
2021-12-14 22:48:37 +00:00
< span id = "reddot-{{c.id}}" > < / span >
2021-12-09 20:31:58 +00:00
2021-12-05 02:05:00 +00:00
{% if c.awards %}
{% for a in c.awards %}
2021-12-14 22:48:37 +00:00
< i class = "{{a.class_list}} px-1" data-bs-toggle = "tooltip" data-bs-placement = "bottom" data-bs-original-title = "{{a.title}} Award given by @{{a.user.username}}" > < / i >
2021-12-05 02:05:00 +00:00
{% endfor %}
{% endif %}
2021-12-14 22:48:37 +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" data-bs-original-title = "User was banned for this comment by @{{c.author.banned_by.username}}" > < / i > < / a >
{% endif %}
{% 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('d-none')" > {{c.active_flags}} Reports< / a > {% endif %}
{% if c.over_18 %}< span class = "badge badge-danger text-small-extra mr-1" > +18< / span > {% endif %}
{% if v and v.admin_level > 1 and c.author.shadowbanned %}< i class = "fas fa-user-times text-admin" data-bs-toggle = "tooltip" data-bs-placement = "bottom" data-bs-original-title = "Shadowbanned by @{{c.author.shadowbanned}}" > < / i > {% endif %}
{% if c.is_pinned and c.is_pinned.startswith('t:') %}
< i id = 'pinned-{{c.id}}' onmouseover = "pinned_timestamp('pinned-{{c.id}}')" class = "fas fa-thumbtack fa-rotate--45 text-admin" data-bs-toggle = "tooltip" data-bs-placement = "bottom" data-timestamp = {{c.is_pinned[2:]}} > < / i >
{% elif c.is_pinned %}
< i id = 'pinned-{{c.id}}' class = "fas fa-thumbtack fa-rotate--45 text-admin" data-bs-toggle = "tooltip" data-bs-placement = "bottom" data-bs-original-title = "Pinned by @{{c.is_pinned}}" > < / i >
{% endif %}
{% if c.distinguish_level %}< i class = "fas fa-broom text-admin" data-bs-toggle = "tooltip" data-bs-placement = "bottom" 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" 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" 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" 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" data-bs-original-title = "This user is blocking you." > < / i > {% endif %}
2021-12-13 12:49:37 +00:00
2021-12-14 22:48:37 +00:00
{% 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" data-bs-original-title = "{{c.author.verified}}" > < / i >
{% endif %}
2021-12-13 12:49:37 +00:00
2021-12-18 19:09:52 +00:00
< a class = "user-name text-decoration-none" onclick = 'popclick({{c.author.json_popover(v) | tojson}})' data-bs-placement = "bottom" data-bs-toggle = "popover" data-bs-trigger = "focus" data-content-id = "popover" href = "javascript:void(0)" tabindex = "0" style = "color:#{{c.author.namecolor}}; font-size:12px; font-weight:bold;" > < img loading = "lazy" src = "{{c.author.profile_url}}" class = "profile-pic-25 mr-2" > < span { % if c . author . patron and not c . distinguish_level % } class = "patron" style = "background-color:#{{c.author.namecolor}};" { % elif c . distinguish_level and ' rama ' in request . host % } class = "mod" { % endif % } > {{c.author.username}}< / span > < / a >
2021-12-14 22:48:37 +00:00
{% if c.author.customtitle %} < bdi style = "color: #{{c.author.titlecolor}}" > {% if c.author.quadrant %}< img loading = "lazy" height = "20" src = "/assets/images/quadrants/{{c.author.quadrant}}.webp?v=190" > {% endif %}{{c.author.customtitle | safe}}< / bdi > {% endif %}
2021-12-09 20:18:18 +00:00
2021-12-14 22:48:37 +00:00
{% if c.parent_comment_id and not standalone and level != 1 %}< a href = "#comment-{{ c.parent_comment_id }}-only" class = "text-muted ml-2" > < i class = "fas fa-reply fa-sm fa-fw fa-flip-horizontal mr-1" > < / i > {{ c.parent_comment.author.username }}< / a > {% endif %}
2021-12-06 05:30:26 +00:00
2021-12-14 22:48:37 +00:00
< span id = "timestamp-{{c.id}}" onmouseover = "timestamp('timestamp-{{c.id}}','{{c.created_utc}}')" data-bs-toggle = "tooltip" data-bs-placement = "bottom" class = "time-stamp" > {{c.age_string}}< / span >
{% if c.edited_utc %}
< span class = "time-edited" id = "time-edit-{{c.id}}" onmouseover = "timestamp('time-edit-{{c.id}}','{{c.edited_utc}}')" > < span > · < / span > < span class = "font-italic" > Edited {{c.edited_string}}< / span > < / span >
2021-12-06 05:30:26 +00:00
{% endif %}
2021-12-05 02:05:00 +00:00
< / div >
2021-12-05 01:52:53 +00:00
{% if c.active_flags %}
2021-12-14 22:48:37 +00:00
< div id = "flaggers-{{c.id}}" class = "flaggers d-none" >
2021-12-05 01:52:53 +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-12-14 22:48:37 +00:00
< li > < a style = "font-weight:bold" href = "{{f.user.url}}" > {{f.user.username}}< / a > {% if f.reason %}: {{f.realreason(v) | 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-12-05 01:52:53 +00:00
{% endfor %}
< / ul >
< / div >
{% endif %}
{% if c.is_banned and c.ban_reason %}
2021-12-14 22:48:37 +00:00
< div id = "comment-banned-warning" class = "comment-text text-removed mb-0" > removed by @{{c.ban_reason}}< / div >
2021-12-05 01:52:53 +00:00
{% endif %}
2021-12-18 03:31:08 +00:00
< div id = "comment-text-{{c.id}}" class = "comment-text mb-0" >
2021-12-05 01:52:53 +00:00
{{c.realbody(v) | safe}}
{% if c.options %}
2021-12-14 22:48:37 +00:00
{{c.options_html(v) | safe}}
2021-12-05 01:52:53 +00:00
{% endif %}
{% 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-12-05 02:05:00 +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-12-17 21:38:13 +00:00
< a class = "btn btn-primary" href = "javascript:void(0)" onclick = "openReplyBox('reply-m-{{c.id}}')" > Reply< / a >
2021-12-14 22:48:37 +00:00
< pre > < / pre >
< div id = "reply-m-{{c.id}}" class = "d-none" >
< 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}}" >
< textarea maxlength = "10000" name = "body" form = "reply-to-t3_{{c.id}}" data-id = "{{c.id}}" class = "comment-box form-control rounded" id = "reply-form-body-{{c.id}}" aria-label = "With textarea" rows = "3" > < / textarea >
< div class = "comment-format" id = "comment-format-bar-{{c.id}}" >
2021-12-18 19:09:52 +00:00
< label class = "btn btn-secondary format m-0" for = "gif-reply-btn-{{c.id}}" >
2021-12-14 22:48:37 +00:00
< 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" data-bs-original-title = "Add Emoji" > < / i >
< / label >
< / div >
< a href = "javascript:void(0)" onclick = "document.getElementById('reply-m-{{c.id}}').classList.add('d-none')" class = "btn btn-link text-muted ml-auto cancel-form" > Cancel< / a >
< a id = "save-reply-to-{{c.id}}" class = "btn btn-primary text-white ml-2" onclick = "post_reply('{{c.id}}');" href = "javascript:void(0)" > Reply< / a >
< / form >
< / div >
< / div >
2021-12-05 02:05:00 +00:00
{% endif %}
2021-12-05 01:52:53 +00:00
< / div >
2021-12-05 02:05:00 +00:00
{% if c.parent_submission %}
2021-12-14 22:48:37 +00:00
2021-12-05 02:05:00 +00:00
{% if v and v.id==c.author_id %}
2021-12-14 22:48:37 +00:00
< div id = "comment-edit-{{c.id}}" class = "d-none comment-write collapsed child" >
< form id = "comment-edit-form-{{c.id}}" action = "/edit_comment/{{c.id}}" method = "post" enctype = "multipart/form-data" >
< input type = "hidden" name = "formkey" value = "{{v.formkey}}" >
< textarea { % if v . longpost % } minlength = "280" { % endif % } maxlength = "{% if v.bird %}140{% else %}10000{% endif %}" oninput = "markdown('comment-edit-body-{{c.id}}', 'preview-edit-{{c.id}}');charLimit('comment-edit-body-{{c.id}}','charcount-edit-{{c.id}}')" id = "comment-edit-body-{{c.id}}" data-id = "{{c.id}}" name = "body" form = "comment-edit-form-{{c.id}}" class = "comment-box form-control rounded" aria-label = "With textarea" placeholder = "Add your comment..." rows = "3" > {{c.body}}< / textarea >
< div class = "text-small font-weight-bold mt-1" id = "charcount-edit-{{c.id}}" style = "right: 1rem; bottom: 0.5rem; z-index: 3;" > < / div >
< div class = "comment-format" >
2021-12-18 19:09:52 +00:00
< a class = "btn btn-secondary format m-0" href = "javascript:void(0)" > < i class = "fas fa-bold" onclick = "makeBold('comment-edit-body-{{c.id}}')" data-bs-toggle = "tooltip" data-bs-placement = "bottom" data-bs-original-title = "Bold" > < / i > < / a >
2021-12-14 22:48:37 +00:00
2021-12-18 19:09:52 +00:00
< a class = "btn btn-secondary format m-0" href = "javascript:void(0)" > < i class = "fas fa-italic" onclick = "makeItalics('comment-edit-body-{{c.id}}')" data-bs-toggle = "tooltip" data-bs-placement = "bottom" data-bs-original-title = "Italicize" > < / i > < / a >
2021-12-14 22:48:37 +00:00
2021-12-18 19:09:52 +00:00
< a class = "btn btn-secondary format m-0" href = "javascript:void(0)" > < i class = "fas fa-quote-right" onclick = "makeQuote('comment-edit-body-{{c.id}}')" data-bs-toggle = "tooltip" data-bs-placement = "bottom" data-bs-original-title = "Quote" > < / i > < / a >
2021-12-14 22:48:37 +00:00
2021-12-18 19:09:52 +00:00
< small class = "btn btn-secondary format m-0" > < span class = "font-weight-bolder text-uppercase" aria-hidden = "true" onclick = "commentForm('comment-edit-body-{{c.id}}');getGif()" data-bs-toggle = "modal" data-bs-target = "#gifModal" data-bs-toggle = "tooltip" data-bs-placement = "bottom" data-bs-original-title = "Add GIF" > GIF< / span > < / small >
2021-12-14 22:48:37 +00:00
2021-12-18 19:09:52 +00:00
< small class = "btn btn-secondary format m-0" > < i class = "fas fa-smile-beam" aria-hidden = "true" onclick = "loadEmojis('comment-edit-body-{{c.id}}')" data-bs-toggle = "modal" data-bs-target = "#emojiModal" data-bs-toggle = "tooltip" data-bs-placement = "bottom" data-bs-original-title = "Add Emoji" > < / i > < / small >
2021-12-14 22:48:37 +00:00
2021-12-18 19:09:52 +00:00
< label class = "btn btn-secondary format m-0" for = "file-edit-reply-{{c.id}}" >
2021-12-14 22:48:37 +00:00
< div id = "filename-edit-reply-{{c.id}}" > < i class = "far fa-image" > < / i > < / div >
2021-12-18 03:01:36 +00:00
< input id = "file-edit-reply-{{c.id}}" type = "file" name = "file" accept = "image/*, video/*" { % if request . headers . get ( ' cf-ipcountry ' ) = = " T1 " % } disabled { % endif % } onchange = "document.getElementById('filename-edit-reply-{{c.id}}').innerHTML='image/video';" hidden >
2021-12-14 22:48:37 +00:00
< / label >
< / div >
< a href = "javascript:void(0)" form = "comment-edit-form-{{c.id}}" class = "btn btn-primary ml-2 fl-r commentmob" onclick = "comment_edit('{{c.id}}')" > Save Edit< / a >
< a id = "cancel-edit-{{c.id}}" href = "javascript:void(0)" onclick = "toggleEdit('{{c.id}}')" class = "btn btn-link text-muted ml-auto cancel-form fl-r commentmob" > Cancel< / a >
< / form >
< div id = "preview-edit-{{c.id}}" class = "mb-3 mt-5" > < / div >
< div class = "form-text text-small p-0 m-0" > < a href = "/formatting" { % if v and v . newtab % } target = "_blank" { % endif % } > Formatting help< / a > < / div >
< / div >
2021-12-05 02:05:00 +00:00
{% endif %}
2021-12-14 22:48:37 +00:00
< div id = "comment-{{c.id}}-actions" class = "comment-actions{% if voted==1 %} upvoted{% elif voted==-1 %} downvoted{% endif %}" >
2021-12-18 19:09:52 +00:00
< ul class = "d-md-none list-inline text-right text-md-left {% if v and v.admin_level > 1 %}d-flex{% endif %}" >
2021-12-17 21:01:47 +00:00
{% if v and v.admin_level > 1 %}
2021-12-18 19:09:52 +00:00
< button class = "btn py-0 nobackground px-1 mr-auto d-md-none" href = "javascript:void(0)" data-bs-toggle = "modal" data-bs-target = "#adminModal-{{c.id}}" >
< i class = "fas fa-broom" > < / i >
< / button >
{% endif %}
< li class = "pt-1" >
{% if v %}
< button class = "btn py-0 nobackground px-1 text-muted" href = "javascript:void(0)" onclick = "openReplyBox('reply-to-{{c.id}}')" > < i class = "fas fa-reply" aria-hidden = "true" > < / i > < / button >
{% endif %}
< button class = "btn py-0 nobackground px-1 " href = "javascript:void(0)" data-bs-toggle = "modal" data-bs-target = "#actionsModal-{{c.id}}" data-bs-focus = "false" > < i class = "fas fa-ellipsis-h" > < / i > < / button >
{% if v and request.path.startswith('/@') and v.admin_level == 0 %}
{% if voted==1 %}
< button class = "btn m-0 p-0 nobackground arrow-up comment-{{c.id}}-up active" > < / button >
{% endif %}
{% elif v %}
< button id = "comment-mobile-{{c.id}}-up" tabindex = "0" onclick = "vote('comment-mobile', '{{c.id}}', '1')" class = "btn m-0 p-0 nobackground arrow-up upvote-button comment-{{c.id}}-up {% if voted==1 %}active{% endif %}" > < / button >
{% else %}
< button id = "comment-{{c.id}}-up" tabindex = "0" onclick = "vote('comment', '{{c.id}}', '1')" class = "btn m-0 p-0 nobackground arrow-up" onclick = "location.href='/login';" > < / button >
{% endif %}
< button class = "btn m-0 px-1 nobackground" > < span class = "points" data-bs-toggle = "tooltip" data-bs-placement = "top" data-bs-original-title = "+{{ups}} | -{{downs}}" > < span id = "comment-mobile-score-{{c.id}}" class = "score comment-score-{{c.id}} {% if voted==1 %}score-up{% elif voted==-1%}score-down{% endif %}" > {{score}}< / span > < / span > < / button >
{% if v and request.path.startswith('/@') and v.admin_level == 0 %}
{% if voted==-1 %}
< button class = "btn m-0 p-0 nobackground arrow-down comment-{{c.id}}-up active" > < / button >
{% endif %}
{% elif v %}
< button { % if environ . get ( ' DISABLE_DOWNVOTES ' ) = = ' 1 ' % } style = "display:None!important" { % endif % } id = "comment-mobile-{{c.id}}-down" tabindex = "0" onclick = "vote('comment-mobile', '{{c.id}}', '-1')" class = "btn m-0 p-0 nobackground arrow-down downvote-button comment-{{c.id}}-down {% if voted==-1 %}active{% endif %}" > < / button >
{% else %}
< a { % if environ . get ( ' DISABLE_DOWNVOTES ' ) = = ' 1 ' % } style = "display:None!important" { % endif % } id = "comment-{{c.id}}-down" tabindex = "0" onclick = "vote('comment', '{{c.id}}', '-1')" class = "arrow-down" onclick = "location.href='/login';" > < / a >
{% endif %}
< / li >
< / ul >
< ul class = "d-none d-md-flex list-inline text-right text-md-left" > < li >
2021-12-14 22:48:37 +00:00
{% if v and request.path.startswith('/@') and v.admin_level == 0%}
2021-12-18 00:21:27 +00:00
{% if voted==1 %}
2021-12-18 19:09:52 +00:00
< button class = "btn p-0 mr-1 arrow-up mx-0 comment-{{c.id}}-up active" > < / button >
2021-12-18 00:21:27 +00:00
{% endif %}
2021-12-14 22:48:37 +00:00
{% elif v %}
2021-12-18 00:21:27 +00:00
2021-12-18 19:09:52 +00:00
< button id = "comment-{{c.id}}-up" tabindex = "0" href = "javascript:void(0)" onclick = "vote('comment', '{{c.id}}', '1')" class = "btn p-0 mr-1 nobackground arrow-up upvote-button mx-0 comment-{{c.id}}-up {% if voted==1 %}active{% endif %}" > < / button >
2021-12-18 00:21:27 +00:00
2021-12-14 22:48:37 +00:00
{% else %}
2021-12-18 19:09:52 +00:00
< button id = "comment-{{c.id}}-up" tabindex = "0" class = "btn p-0 mr-1 arrow-up" onclick = "location.href='/login';" > < / button >
2021-12-18 00:21:27 +00:00
2021-12-14 22:48:37 +00:00
{% endif %}
2021-12-18 00:21:27 +00:00
2021-12-18 19:09:52 +00:00
< button class = "btn nobackground px-3 mx-0" >
2021-12-18 00:29:16 +00:00
< span data-bs-toggle = "tooltip" data-bs-placement = "top" data-bs-original-title = "+{{ups}} | -{{downs}}" id = "comment-score-{{c.id}}" class = "score comment-score-{{c.id}} {% if voted==1 %}score-up{% elif voted==-1%}score-down{% endif %}" > {{score}}< / span >
2021-12-18 00:24:27 +00:00
< / button >
2021-12-18 00:21:27 +00:00
2021-12-14 22:48:37 +00:00
{% if v and request.path.startswith('/@') and v.admin_level == 0 %}
2021-12-18 00:21:27 +00:00
{% if voted==-1 %}
2021-12-18 19:09:52 +00:00
< li class = " arrow-down px-2 mx-0 comment-{{c.id}}-down active" > < / li >
2021-12-18 00:21:27 +00:00
{% endif %}
2021-12-14 22:48:37 +00:00
{% elif v %}
2021-12-18 19:09:52 +00:00
< button { % if environ . get ( ' DISABLE_DOWNVOTES ' ) = = ' 1 ' % } style = "display:None!important" { % endif % } id = "comment-{{c.id}}-down" tabindex = "0" href = "javascript:void(0)" onclick = "vote('comment', '{{c.id}}', '-1')" class = "btn p-0 ml-1 mr-3 nobackground arrow-down downvote-button mx-0 comment-{{c.id}}-down {% if voted==-1 %}active{% endif %}" > < / button >
2021-12-18 00:21:27 +00:00
2021-12-14 22:48:37 +00:00
{% else %}
2021-12-18 00:21:27 +00:00
2021-12-18 19:09:52 +00:00
< button { % if environ . get ( ' DISABLE_DOWNVOTES ' ) = = ' 1 ' % } style = "display:None!important" { % endif % } id = "comment-{{c.id}}-down" tabindex = "0" href = "javascript:void(0)" class = "btn py-0 nobackground px-1 arrow-down" onclick = "location.href='/login';" > < / button >
2021-12-18 00:21:27 +00:00
2021-12-14 22:48:37 +00:00
{% endif %}
2021-12-18 00:21:27 +00:00
2021-12-18 19:09:52 +00:00
< a href = "/votes?link={{c.fullname}}" class = "btn nobackground px-1 text-muted" > < i class = "fas fa-arrows-v" > < / i > Votes< / a >
2021-12-18 00:21:27 +00:00
2021-12-14 22:48:37 +00:00
{% if v %}
2021-12-18 19:09:52 +00:00
< button class = "btn py-0 nobackground px-1 text-muted" href = "javascript:void(0)" data-bs-toggle = "modal" data-bs-target = "#awardModal" onclick = "awardModal('/comment/{{c.id}}/awards')" > < i class = "fas fa-gift" aria-hidden = "true" > < / i > Give Award< / button >
2021-12-18 00:21:27 +00:00
2021-12-18 19:09:52 +00:00
< button id = "unsave-{{c.id}}" class = "btn {% if c.id in v.saved_comment_idlist() %}d-md-inline-block{% endif %} text-muted d-none" href = "javascript:void(0)" onclick = "post_toast3('/unsave_comment/{{c.id}}','save-{{c.id}}','unsave-{{c.id}}')" > < i class = "fas fa-save" > < / i > Unsave< / button >
2021-12-18 00:21:27 +00:00
2021-12-18 19:09:52 +00:00
< button id = "save-{{c.id}}" class = "btn py-0 nobackground px-1 {% if c.id not in v.saved_comment_idlist() %}d-md-inline-block{% endif %} text-muted d-none" href = "javascript:void(0)" onclick = "post_toast3('/save_comment/{{c.id}}','save-{{c.id}}','unsave-{{c.id}}')" > < i class = "fas fa-save" > < / i > Save< / button >
2021-12-18 00:21:27 +00:00
2021-12-18 19:09:52 +00:00
< button class = "btn py-0 nobackground px-1 text-muted" href = "javascript:void(0)" onclick = "openReplyBox('reply-to-{{c.id}}')" > < i class = "fas fa-reply" aria-hidden = "true" > < / i > Reply< / button >
2021-12-14 22:48:37 +00:00
{% endif %}
2021-12-18 00:21:27 +00:00
2021-12-18 19:09:52 +00:00
< a class = "btn nobackground px-1 text-muted" href = "{{c.permalink}}" > < i class = "fas fa-book-open" > < / i > Context< / a >
2021-12-18 00:21:27 +00:00
2021-12-18 19:09:52 +00:00
< button class = "btn py-0 nobackground px-1 text-muted copy-link" href = "javascript:void(0);" role = "button" data-clipboard-text = "{% if 'rama' in request.host %}https://freeghettohoes.biz{{c.permalink}}{% else %}{{c.permalink | full_link}}{% endif %}" > < i class = "fas fa-copy" > < / i > Copy link< / button >
2021-12-14 22:48:37 +00:00
{% if v %}
2021-12-18 19:09:52 +00:00
< button class = "btn py-0 nobackground px-1 text-muted" data-bs-toggle = "modal" data-bs-target = "#reportCommentModal" onclick = "report_commentModal('{{c.id}}','{{c.author.username}}',)" > < i class = "fas fa-flag fa-fw" > < / i > Report< / button >
2021-12-14 22:48:37 +00:00
{% endif %}
2021-12-18 00:21:27 +00:00
2021-12-14 22:48:37 +00:00
{% if v and c.parent_submission and c.author_id==v.id %}
2021-12-18 00:21:27 +00:00
2021-12-18 19:09:52 +00:00
< button class = "btn py-0 nobackground px-1 text-muted" onclick = "toggleEdit('{{c.id}}')" > < i class = "fas fa-edit fa-fw" > < / i > Edit< / button >
2021-12-18 00:21:27 +00:00
{% if c.deleted_utc > 0 %}
2021-12-18 19:09:52 +00:00
< button class = "btn py-0 nobackground px-1 text-muted" onclick = "post_toast('/undelete/comment/{{c.id}}')" > < i class = "fas fa-trash-alt fa-fw" > < / i > Undelete< / button >
2021-12-18 00:21:27 +00:00
{% else %}
2021-12-18 19:09:52 +00:00
< button class = "btn py-0 nobackground px-1 text-muted" data-bs-toggle = "modal" data-bs-target = "#deleteCommentModal" onclick = "delete_commentModal('{{c.id}}')" > < i class = "fas fa-trash-alt fa-fw" > < / i > Delete< / button >
2021-12-18 00:21:27 +00:00
{% endif %}
2021-12-14 22:48:37 +00:00
{% endif %}
{% if v and v.admin_level > 0 and v.id==c.author_id %}
2021-12-18 19:09:52 +00:00
< button id = "undistinguish-{{c.id}}" class = "btn py-0 nobackground px-1 d-none {% if c.distinguish_level %}d-md-inline-block{% endif %} text-info" onclick = "post_toast3('/distinguish_comment/{{c.id}}','distinguish-{{c.id}}','undistinguish-{{c.id}}','no')" > < i class = "fas fa-id-badge text-info fa-fw" > < / i > Undistinguish< / button >
< button id = "distinguish-{{c.id}}" class = "btn py-0 nobackground px-1 d-none {% if not c.distinguish_level %}d-md-inline-block{% endif %} text-info" onclick = "post_toast3('/distinguish_comment/{{c.id}}','distinguish-{{c.id}}','undistinguish-{{c.id}}','yes')" > < i class = "fas fa-id-badge text-info fa-fw" > < / i > Distinguish< / button >
2021-12-14 22:48:37 +00:00
{% endif %}
2021-12-18 00:21:27 +00:00
2021-12-14 22:48:37 +00:00
{% if v and not v.id==c.author_id %}
2021-12-18 19:09:52 +00:00
< button id = "unblock-{{c.id}}" class = "text-success {% if c.is_blocking %}d-md-inline-block{% endif %} d-none" onclick = "post_toast3('/settings/unblock?username={{c.author.username}}','block-{{c.id}}','unblock-{{c.id}}')" > < i class = "fas fa-eye-slash fa-fw text-success" > < / i > Unblock user< / button >
2021-12-18 00:21:27 +00:00
2021-12-18 19:09:52 +00:00
< button id = "prompt-{{c.id}}" class = "blockuser d-none text-danger" onclick = "post_toast3('/settings/block?username={{c.author.username}}','prompt-{{c.id}}','unblock-{{c.id}}')" > < i class = "fas fa-eye-slash fa-fw text-danger" > < / i > Are you sure?< / button >
2021-12-18 00:21:27 +00:00
2021-12-18 19:09:52 +00:00
< button id = "block-{{c.id}}" class = "btn py-0 nobackground px-1 {% if not c.is_blocking %}d-md-inline-block{% endif %} d-none text-danger" onclick = "document.getElementById('block-{{c.id}}').classList.toggle('d-md-inline-block');document.getElementById('prompt-{{c.id}}').classList.toggle('d-md-inline-block');" > < i class = "fas fa-eye-slash fa-fw text-danger" > < / i > Block user< / button >
2021-12-14 22:48:37 +00:00
{% endif %}
2021-12-18 00:21:27 +00:00
2021-12-14 22:48:37 +00:00
{% if v and c.post and (v.admin_level > 1 or v.id == c.post.author_id) %}
2021-12-18 19:09:52 +00:00
< button id = "unpin-{{c.id}}" class = "btn py-0 nobackground {% if c.is_pinned %}d-md-inline-block{% endif %} text-muted d-none text-info" data-bs-dismiss = "modal" data-bs-target = "#actionsModal-{{c.id}}" onclick = "post_toast3('/pin_comment/{{c.id}}','pin-{{c.id}}','unpin-{{c.id}}')" > < i class = "fas fa-thumbtack fa-rotate--45 text-info fa-fw" > < / i > Unpin< / button >
2021-12-18 00:21:27 +00:00
2021-12-18 19:09:52 +00:00
< button id = "pin-{{c.id}}" class = "btn py-0 nobackground px-1 {% if not c.is_pinned %}d-md-inline-block{% endif %} text-muted d-none text-info" data-bs-dismiss = "modal" data-bs-target = "#actionsModal-{{c.id}}" onclick = "post_toast3('/pin_comment/{{c.id}}','pin-{{c.id}}','unpin-{{c.id}}')" > < i class = "fas fa-thumbtack fa-rotate--45 text-info fa-fw" > < / i > Pin< / button >
2021-12-14 22:48:37 +00:00
{% endif %}
2021-12-18 00:21:27 +00:00
2021-12-14 22:48:37 +00:00
{% if v and v.admin_level > 1 %}
2021-12-18 00:21:27 +00:00
{% if "/reported/" in request.path %}
2021-12-18 19:09:52 +00:00
< button class = "btn py-0 nobackground px-1 text-muted text-success" onclick = "approveComment('{{c.id}}')" > < i class = "fas fa-check text-success fa-fw" > < / i > Approve< / button >
< button class = "btn py-0 nobackground px-1 text-muted text-danger" onclick = "removeComment('{{c.id}}')" > < i class = "fas fa-ban text-danger fa-fw" > < / i > Remove< / button >
2021-12-18 00:21:27 +00:00
{% else %}
2021-12-18 19:09:52 +00:00
< button id = "approve-{{c.id}}" class = "btn py-0 nobackground px-1 text-success d-none {% if c.is_banned %}d-md-inline-block{% endif %} text-success" onclick = "approveComment('{{c.id}}','approve-{{c.id}}','remove-{{c.id}}')" > < i class = "fas fa-check text-success fa-fw" > < / i > Approve< / button >
< button id = "remove-{{c.id}}" class = "btn py-0 nobackground px-1 text-danger d-none {% if not c.is_banned %}d-md-inline-block{% endif %} text-danger" onclick = "removeComment('{{c.id}}','approve-{{c.id}}','remove-{{c.id}}')" > < i class = "fas fa-ban text-danger fa-fw" > < / i > Remove< / button >
2021-12-14 22:48:37 +00:00
{% endif %}
2021-12-18 00:21:27 +00:00
{% endif %}
2021-12-14 22:48:37 +00:00
{% if v and c.parent_submission and (c.author_id==v.id or v.admin_level > 0) %}
2021-12-18 19:09:52 +00:00
< button id = "unmark-{{c.id}}" class = "btn py-0 nobackground px-1 d-none {% if c.over_18 %}d-md-inline-block{% endif %} text-danger" onclick = "post_toast3('/toggle_comment_nsfw/{{c.id}}','mark-{{c.id}}','unmark-{{c.id}}')" > < i class = "fas fa-eye-evil text-danger fa-fw" > < / i > Unmark +18< / button >
< button id = "mark-{{c.id}}" class = "btn py-0 nobackground px-1 d-none {% if not c.over_18 %}d-md-inline-block{% endif %} text-danger" onclick = "post_toast3('/toggle_comment_nsfw/{{c.id}}','mark-{{c.id}}','unmark-{{c.id}}')" > < i class = "fas fa-eye-evil text-danger fa-fw" > < / i > Mark +18< / button >
2021-12-14 22:48:37 +00:00
{% endif %}
2021-12-18 00:21:27 +00:00
2021-12-14 22:48:37 +00:00
{% if v and v.admin_level > 1 and v.id != c.author_id %}
2021-12-18 19:09:52 +00:00
< button id = "unban-{{c.id}}" class = "btn py-0 nobackground px-1 d-none {% if c.author.is_suspended %}d-md-inline-block{% endif %} text-success" id = "unexile-comment-{{c.id}}" onclick = "post_toast3('/unban_user/{{c.author_id}}','ban-{{c.id}}','unban-{{c.id}}')" > < i class = "fas fa-user-slash text-success fa-fw" > < / i > Unban user< / button >
< button id = "ban-{{c.id}}" class = "btn py-0 nobackground px-1 d-none {% if not c.author.is_suspended %}d-md-inline-block{% endif %} text-danger" id = "exile-comment-{{c.id}}" data-bs-toggle = "modal" data-bs-target = "#banModal" onclick = "banModal('/comment/{{c.id}}', '{{ c.author.id }}', '{{c.author.username}}')" > < i class = "fas fa-user-slash text-danger fa-fw" > < / i > Ban user< / button >
2021-12-14 22:48:37 +00:00
{% endif %}
2021-12-18 00:21:27 +00:00
2021-12-14 22:48:37 +00:00
{% if v and v.admin_level > 1 and c.oauth_app %}
2021-12-18 19:09:52 +00:00
< a class = " text-muted" href = "{{c.oauth_app.permalink}}/comments" > < i class = "fas fa-code fa-fw" > < / i > API App< / a >
2021-12-14 22:48:37 +00:00
{% endif %}
2021-12-18 19:09:52 +00:00
< / li > < / ul >
2021-12-05 02:05:00 +00:00
< / div >
2021-12-18 00:21:27 +00:00
{% endif %}
< / div >
2021-12-05 02:09:45 +00:00
2021-12-14 22:48:37 +00:00
< div id = "reply-to-{{c.id}}" class = "d-none" >
< div id = "comment-form-space-{{c.fullname}}" class = "comment-write collapsed child" >
< form id = "reply-to-t3_{{c.id}}" action = "/comment" method = "post" enctype = "multipart/form-data" >
< input type = "hidden" name = "formkey" value = "{{v.formkey}}" >
< input type = "hidden" name = "parent_fullname" value = "{{c.fullname}}" >
< input id = "reply-form-submission-{{c.fullname}}" type = "hidden" name = "submission" value = "{{c.post.id}}" >
< textarea { % if v . longpost % } minlength = "280" { % endif % } maxlength = "{% if v.bird %}140{% else %}10000{% endif %}" oninput = "markdown('reply-form-body-{{c.fullname}}', 'reply-edit-{{c.id}}');charLimit('reply-form-body-{{c.fullname}}','charcount-{{c.id}}')" id = "reply-form-body-{{c.fullname}}" data-fullname = "{{c.fullname}}" name = "body" form = "reply-to-t3_{{c.id}}" class = "comment-box form-control rounded" aria-label = "With textarea" placeholder = "Add your comment..." rows = "3" > < / textarea >
< div class = "text-small font-weight-bold mt-1" id = "charcount-{{c.id}}" style = "right: 1rem; bottom: 0.5rem; z-index: 3;" > < / div >
< div class = "comment-format" id = "comment-format-bar-{{c.id}}" >
2021-12-18 19:09:52 +00:00
< a class = "btn btn-secondary format m-0" href = "javascript:void(0)" > < i class = "fas fa-bold" onclick = "makeBold('reply-form-body-{{c.fullname}}')" data-bs-toggle = "tooltip" data-bs-placement = "bottom" data-bs-original-title = "Bold" > < / i > < / a >
2021-12-14 22:48:37 +00:00
2021-12-18 19:09:52 +00:00
< a class = "btn btn-secondary format m-0" href = "javascript:void(0)" > < i class = "fas fa-italic" onclick = "makeItalics('reply-form-body-{{c.fullname}}')" data-bs-toggle = "tooltip" data-bs-placement = "bottom" data-bs-original-title = "Italicize" > < / i > < / a >
2021-12-14 22:48:37 +00:00
2021-12-18 19:09:52 +00:00
< a class = "btn btn-secondary format m-0" href = "javascript:void(0)" > < i class = "fas fa-quote-right" onclick = "makeQuote('reply-form-body-{{c.fullname}}')" data-bs-toggle = "tooltip" data-bs-placement = "bottom" data-bs-original-title = "Quote" > < / i > < / a >
2021-12-14 22:48:37 +00:00
2021-12-18 19:09:52 +00:00
< label class = "btn btn-secondary format m-0" for = "gif-reply-btn-{{c.fullname}}" >
2021-12-14 22:48:37 +00:00
< span id = "gif-reply-btn-{{c.fullname}}" class = "font-weight-bolder text-uppercase" onclick = "commentForm('reply-form-body-{{c.fullname}}');getGif()" aria-hidden = "true" data-bs-toggle = "modal" data-bs-target = "#gifModal" data-bs-toggle = "tooltip" data-bs-placement = "bottom" data-bs-original-title = "Add GIF" > GIF< / span >
< / label >
2021-12-18 19:09:52 +00:00
< label class = "btn btn-secondary format m-0" for = "gif-reply-btn-{{c.fullname}}" >
2021-12-14 22:48:37 +00:00
< i id = "emoji-reply-btn-{{c.fullname}}" class = "fas fa-smile-beam" onclick = "loadEmojis('reply-form-body-{{c.fullname}}')" aria-hidden = "true" data-bs-toggle = "modal" data-bs-target = "#emojiModal" data-bs-toggle = "tooltip" data-bs-placement = "bottom" data-bs-original-title = "Add Emoji" > < / i >
< / label >
2021-12-18 19:09:52 +00:00
< label class = "btn btn-secondary format m-0" for = "file-upload-reply-{{c.fullname}}" >
2021-12-14 22:48:37 +00:00
< div id = "filename-show-reply-{{c.fullname}}" > < i class = "far fa-image" > < / i > < / div >
2021-12-18 03:01:36 +00:00
< input id = "file-upload-reply-{{c.fullname}}" type = "file" name = "file" accept = "image/*, video/*" { % if request . headers . get ( ' cf-ipcountry ' ) = = " T1 " % } disabled { % endif % } onchange = "document.getElementById('filename-show-reply-{{c.fullname}}').innerHTML='image/video';" hidden >
2021-12-14 22:48:37 +00:00
< / label >
< / div >
< a id = "save-reply-to-{{c.fullname}}" class = "btn btn-primary text-white ml-2 fl-r commentmob" onclick = "post_comment('{{c.fullname}}', '{{c.post.id}}');" href = "javascript:void(0)" > Comment< / a >
< a href = "javascript:void(0)" onclick = "document.getElementById('reply-to-{{c.id}}').classList.add('d-none')" class = "btn btn-link text-muted ml-auto cancel-form fl-r commentmob" > Cancel< / a >
< / form >
< div id = "reply-edit-{{c.id}}" class = "mb-3 mt-5" > < / div >
< div class = "form-text text-small p-0 m-0" > < a href = "/formatting" { % if v and v . newtab % } target = "_blank" { % endif % } > Formatting help< / a > < / div >
< / div >
2021-12-06 05:30:26 +00:00
< / div >
2021-12-06 05:30:00 +00:00
2021-12-14 22:48:37 +00:00
2021-10-15 14:08:27 +00:00
{% if render_replies %}
2021-12-05 03:18:12 +00:00
{% if level< 10 % }
2021-12-14 22:48:37 +00:00
< div id = "replies-of-{{c.id}}" >
2021-10-15 14:08:27 +00:00
{% 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-12-14 22:48:37 +00:00
< div id = "replies-of-{{c.id}}" class = "d-none 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-12-14 22:48:37 +00:00
< div id = "morecomment-{{c.id}}" class = "d-md-none mt-2 more-comments text-small" >
2021-12-11 01:49:00 +00:00
< a href = "{{c.shortlink}}" > 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-12-14 22:48:37 +00:00
< div id = "morecomments-{{c.id}}" class = "mt-2 more-comments text-small" >
< button id = "btn-{{c.id}}" class = "d-none d-md-block btn btn-primary" onclick = "morecomments('{{c.id}}')" > More comments< / button >
< a class = "d-md-none" href = "{{c.shortlink}}" > 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-12-14 22:48:37 +00:00
< div class = "modal fade d-md-none" id = "actionsModal-{{c.id}}" tabindex = "-1" role = "dialog" aria-labelledby = "actionsModalTitle" aria-hidden = "true" >
< div class = "modal-dialog modal-dialog-centered" role = "document" >
< div class = "modal-content" >
< div class = "modal-header" >
< h5 class = "modal-title h6" > More options< / 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" >
< ul class = "list-group comment-actions" >
< a href = "/votes?link={{c.fullname}}" > < li class = "list-group-item" > < i class = "fas fa-arrows-v" > < / i > Votes< / li > < / a >
2021-12-17 21:01:47 +00:00
< a href = "javascript:void(0);" role = "button" class = "list-group-item copy-link" data-bs-dismiss = "modal" data-clipboard-text = "{% if 'rama' in request.host %}https://freeghettohoes.biz{{c.permalink}}{% else %}{{c.permalink | full_link}}{% endif %}" > < i class = "fas fa-copy" > < / i > Copy link< / a >
< a class = "list-group-item" href = "{{c.permalink}}" > < i class = "fas fa-dna" > < / i > Context< / a >
< a href = "javascript:void(0)" data-bs-toggle = "modal" data-bs-dismiss = "modal" data-bs-target = "#reportCommentModal" onclick = "report_commentModal('{{c.id}}','{{c.author.username}}')" class = "list-group-item" > < i class = "fas fa-flag" > < / i > Report< / a >
2021-12-14 22:48:37 +00:00
{% if v %}
< a class = "list-group-item" href = "javascript:void(0)" data-bs-toggle = "modal" data-bs-target = "#awardModal" onclick = "awardModal('/comment/{{c.id}}/awards')" > < i class = "fas fa-gift" aria-hidden = "true" > < / i > Give Award< / a >
< a id = "save2-{{c.id}}" class = "list-group-item {% if c.id in v.saved_comment_idlist() %}d-none{% endif %}" href = "javascript:void(0)" data-bs-dismiss = "modal" onclick = "post_toast2('/save_comment/{{c.id}}','save2-{{c.id}}','unsave2-{{c.id}}')" > < i class = "fas fa-save" > < / i > Save< / a >
< a id = "unsave2-{{c.id}}" class = "list-group-item {% if c.id not in v.saved_comment_idlist() %}d-none{% endif %}" href = "javascript:void(0)" onclick = "post_toast2('/unsave_comment/{{c.id}}','save2-{{c.id}}','unsave2-{{c.id}}')" data-bs-dismiss = "modal" > < i class = "fas fa-save" > < / i > Unsave< / a >
2021-12-17 21:01:47 +00:00
{% if c.author_id == v.id %}
< a href = "javascript:void(0)" data-bs-dismiss = "modal" onclick = "toggleEdit('{{c.id}}')" class = "list-group-item" > < i class = "fas fa-edit" > < / i > Edit< / a >
2021-12-14 22:48:37 +00:00
2021-12-17 21:01:47 +00:00
{% if c.deleted_utc > 0 %}
< a href = "javascript:void(0)" onclick = "post_toast('/undelete/comment/{{c.id}}')" data-bs-dismiss = "modal" class = "list-group-item" > < i class = "fas fa-trash-alt" > < / i > Undelete< / a >
{% else %}
< a href = "javascript:void(0)" data-bs-toggle = "modal" data-bs-target = "#deleteCommentModal" onclick = "delete_commentModal('{{c.id}}')" class = "list-group-item" > < i class = "fas fa-trash-alt" > < / i > Delete< / a >
{% endif %}
2021-12-14 22:48:37 +00:00
2021-12-17 21:01:47 +00:00
< a id = "mark2-{{c.id}}" class = "{% if c.over_18 %}d-none{% endif %} list-group-item text-danger" href = "javascript:void(0)" onclick = "post_toast2('/toggle_comment_nsfw/{{c.id}}','mark2-{{c.id}}','unmark2-{{c.id}}')" data-bs-dismiss = "modal" > < i class = "fas fa-eye-evil text-danger" > < / i > Mark +18< / a >
< a id = "unmark2-{{c.id}}" class = "{% if not c.over_18 %}d-none{% endif %} list-group-item text-danger" href = "javascript:void(0)" onclick = "post_toast2('/toggle_comment_nsfw/{{c.id}}','mark2-{{c.id}}','unmark2-{{c.id}}')" data-bs-dismiss = "modal" > < i class = "fas fa-eye-evil text-danger" > < / i > Unmark +18< / a >
{% else %}
< a id = "unblock2-{{c.id}}" data-bs-dismiss = "modal" class = "text-success list-group-item {% if not c.is_blocking %}d-none{% endif %}" href = "javascript:void(0)" onclick = "post_toast2('/settings/unblock?username={{c.author.username}}','block2-{{c.id}}','unblock2-{{c.id}}')" data-bs-dismiss = "modal" > < i class = "fas fa-eye-slash text-success" > < / i > Unblock user< / a >
< a id = "prompt2-{{c.id}}" data-bs-dismiss = "modal" class = "blockuser list-group-item d-none text-danger" href = "javascript:void(0)" onclick = "post_toast2('/settings/block?username={{c.author.username}}','prompt2-{{c.id}}','unblock2-{{c.id}}')" > < i class = "fas fa-eye-slash fa-fw text-danger" > < / i > Are you sure?< / a >
< a id = "block2-{{c.id}}" class = "{% if c.is_blocking %}d-none{% endif %} list-group-item text-danger" href = "javascript:void(0)" onclick = "document.getElementById('block2-{{c.id}}').classList.toggle('d-none');document.getElementById('prompt2-{{c.id}}').classList.toggle('d-none');" > < i class = "fas fa-eye-slash fa-fw text-danger" > < / i > Block user< / a >
{% endif %}
2021-12-14 22:48:37 +00:00
2021-12-17 21:01:47 +00:00
{% if c.post and v.id == c.post.author_id %}
< a id = "pin2-{{c.id}}" class = "list-group-item {% if c.is_pinned %}d-none{% endif %} text-info" href = "javascript:void(0)" data-bs-target = "#actionsModal-{{c.id}}" onclick = "post_toast2('/pin_comment/{{c.id}}','pin2-{{c.id}}','unpin2-{{c.id}}')" data-bs-dismiss = "modal" > < i class = "fas fa-thumbtack fa-rotate--45 text-info" > < / i > Pin< / a >
< a id = "unpin2-{{c.id}}" class = "list-group-item {% if not c.is_pinned %}d-none{% endif %} text-info" href = "javascript:void(0)" data-bs-target = "#actionsModal-{{c.id}}" onclick = "post_toast2('/pin_comment/{{c.id}}','pin2-{{c.id}}','unpin2-{{c.id}}')" data-bs-dismiss = "modal" > < i class = "fas fa-thumbtack fa-rotate--45 text-info" > < / i > Unpin< / a >
2021-12-14 22:48:37 +00:00
{% endif %}
{% endif %}
2021-12-17 21:01:47 +00:00
< / ul >
< / div >
< / div >
< / div >
< / div >
2021-12-14 22:48:37 +00:00
2021-12-17 21:01:47 +00:00
{% if v and v.admin_level > 1 %}
< div class = "modal fade d-md-none" id = "adminModal-{{c.id}}" tabindex = "-1" role = "dialog" aria-labelledby = "actionsModalTitle" aria-hidden = "true" >
< div class = "modal-dialog modal-dialog-centered" role = "document" >
< div class = "modal-content" >
< div class = "modal-header" >
< h5 class = "modal-title h6" > Admin options< / 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" >
< ul class = "list-group comment-actions" >
{% if c.parent_submission %}
< a id = "pin2-{{c.id}}" class = "list-group-item {% if c.is_pinned %}d-none{% endif %} text-info" href = "javascript:void(0)" data-bs-target = "#actionsModal-{{c.id}}" onclick = "post_toast2('/pin_comment/{{c.id}}','pin2-{{c.id}}','unpin2-{{c.id}}')" data-bs-dismiss = "modal" > < i class = "fas fa-thumbtack fa-rotate--45 text-info" > < / i > Pin< / a >
< a id = "unpin2-{{c.id}}" class = "list-group-item {% if not c.is_pinned %}d-none{% endif %} text-info" href = "javascript:void(0)" data-bs-target = "#actionsModal-{{c.id}}" onclick = "post_toast2('/pin_comment/{{c.id}}','pin2-{{c.id}}','unpin2-{{c.id}}')" data-bs-dismiss = "modal" > < i class = "fas fa-thumbtack fa-rotate--45 text-info" > < / i > Unpin< / a >
< a id = "mark2-{{c.id}}" class = "{% if c.over_18 %}d-none{% endif %} list-group-item text-danger" href = "javascript:void(0)" onclick = "post_toast2('/toggle_comment_nsfw/{{c.id}}','mark2-{{c.id}}','unmark2-{{c.id}}')" data-bs-dismiss = "modal" > < i class = "fas fa-eye-evil text-danger" > < / i > Mark +18< / a >
< a id = "unmark2-{{c.id}}" class = "{% if not c.over_18 %}d-none{% endif %} list-group-item text-danger" href = "javascript:void(0)" onclick = "post_toast2('/toggle_comment_nsfw/{{c.id}}','mark2-{{c.id}}','unmark2-{{c.id}}')" data-bs-dismiss = "modal" > < i class = "fas fa-eye-evil text-danger" > < / i > Unmark +18< / a >
{% endif %}
2021-12-14 22:48:37 +00:00
2021-12-17 21:01:47 +00:00
{% if v.id == c.author_id %}
< a id = "distinguish2-{{c.id}}" class = "list-group-item {% if c.distinguish_level %}d-none{% endif %} text-info" href = "javascript:void(0)" onclick = "post_toast2('/distinguish_comment/{{c.id}}','distinguish2-{{c.id}}','undistinguish2-{{c.id}}')" data-bs-dismiss = "modal" > < i class = "fas fa-id-badge text-info" > < / i > Distinguish< / a >
< a id = "undistinguish2-{{c.id}}" class = "list-group-item {% if not c.distinguish_level %}d-none{% endif %} text-info" href = "javascript:void(0)" onclick = "post_toast2('/distinguish_comment/{{c.id}}','distinguish2-{{c.id}}','undistinguish2-{{c.id}}')" data-bs-dismiss = "modal" > < i class = "fas fa-id-badge text-info" > < / i > Undistinguish< / a >
{% else %}
2021-12-14 22:48:37 +00:00
< a id = "ban2-{{c.id}}" class = "{% if c.author.is_suspended %}d-none{% endif %} list-group-item text-danger" data-bs-dismiss = "modal" data-bs-toggle = "modal" data-bs-target = "#banModal" onclick = "banModal('/comment/{{c.id}}', '{{ c.author.id }}', '{{c.author.username}}')" href = "javascript:void(0)" > < i class = "fas fa-user-slash text-danger fa-fw" > < / i > Ban user< / a >
< a id = "unban2-{{c.id}}" class = "{% if not c.author.is_suspended %}d-none{% endif %} list-group-item text-success" href = "javascript:void(0)" onclick = "post_toast2('/unban_user/{{c.author_id}}','ban2-{{c.id}}','unban2-{{c.id}}')" data-bs-dismiss = "modal" > < i class = "fas fa-user-minus fa-fw text-success" > < / i > Unban user< / a >
{% endif %}
2021-12-17 21:01:47 +00:00
{% if "/reported/" in request.path %}
< a class = "list-group-item text-danger" href = "javascript:void(0)" onclick = "removeComment2('{{c.id}}')" data-bs-dismiss = "modal" > < i class = "fas fa-ban text-danger" > < / i > Remove< / a >
< a class = "list-group-item text-success" href = "javascript:void(0)" onclick = "approveComment2('{{c.id}}')" data-bs-dismiss = "modal" > < i class = "fas fa-check text-success" > < / i > Approve< / a >
{% else %}
< a id = "remove2-{{c.id}}" class = "{% if c.is_banned %}d-none{% endif %} list-group-item text-danger" href = "javascript:void(0)" onclick = "removeComment2('{{c.id}}','approve2-{{c.id}}','remove2-{{c.id}}')" data-bs-dismiss = "modal" > < i class = "fas fa-ban text-danger" > < / i > Remove< / a >
< a id = "approve2-{{c.id}}" class = "{% if not c.is_banned %}d-none{% endif %} list-group-item text-success" href = "javascript:void(0)" onclick = "approveComment2('{{c.id}}','approve2-{{c.id}}','remove2-{{c.id}}')" data-bs-dismiss = "modal" > < i class = "fas fa-check text-success" > < / i > Approve< / a >
{% endif %}
{% if c.oauth_app %}
< a href = "{{c.oauth_app.permalink}}/comments" class = "list-group-item text-info" > < i class = "fas fa-code text-info" > < / i > API App< / a >
{% endif %}
< / ul >
< / div >
2021-12-14 22:48:37 +00:00
< / div >
< / div >
< / div >
2021-12-17 21:01:47 +00:00
{% endif %}
2021-12-05 01:57:45 +00:00
2021-10-15 14:08:27 +00:00
< / div >
{% endif %}
{% endmacro %}
{% for comment in comments %}
{{single_comment(comment)}}
2021-12-05 01:52:26 +00:00
{% endfor %}
2021-12-05 02:05:00 +00:00
{% if v %}
{% include "gif_modal.html" %}
{% include "emoji_modal.html" %}
{% if v.admin_level > 1 %}
{% 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 >
< button id = "deleteCommentButton" class = "btn btn-danger" > Delete comment< / button >
< / div >
< / div >
< / div >
< / div >
2021-12-14 22:48:37 +00:00
< div class = "modal fade" id = "reportCommentModal" tabindex = "-1" role = "dialog" aria-labelledby = "reportCommentModalTitle" aria-hidden = "true" >
< 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 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 = "" 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 maxlength = "100" id = "reason-comment" class = "form-control" >
< / div >
< div class = "modal-footer" >
< button type = "button" class = "btn btn-link text-muted" data-bs-dismiss = "modal" > Cancel< / button >
< button type = "button" id = "reportCommentButton" class = "btn btn-danger" > Report 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 type = "button" class = "btn btn-primary" data-bs-dismiss = "modal" > Close< / button >
< / div >
< / div >
< / div >
< / div >
2021-12-11 02:05:48 +00:00
< / div >
2021-12-14 22:48:37 +00:00
{% endif %}
2021-12-06 05:30:26 +00:00
2021-12-05 01:52:26 +00:00
< 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 {
2021-12-14 22:48:37 +00:00
max-width: 50%;
2021-12-05 01:52:26 +00:00
box-shadow: 0 1rem 3rem rgba(0, 0, 0, .175);
border-color: #dadada;
}
2021-12-14 22:48:37 +00:00
@media (max-width: 991.98px) {
.popover {
2021-12-17 19:51:39 +00:00
max-width: 90% !important;
2021-12-14 22:48:37 +00:00
}
}
2021-12-05 01:52:26 +00:00
.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;
}
2021-12-14 22:48:37 +00:00
.text-black {
color: var(--black);
}
2021-12-05 01:52:26 +00:00
.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;
}
2021-12-10 00:20:38 +00:00
2021-12-14 22:48:37 +00:00
@media (max-width: 768px) {
.commentmob {
margin-top: 0.5rem !important;
}
2021-12-10 02:19:12 +00:00
}
2021-10-15 14:08:27 +00:00
< / style >
2021-12-14 22:48:37 +00:00
{% if v %}
< script src = "/assets/js/marked.js?v=190" > < / script >
2021-12-17 21:38:13 +00:00
< script src = "/assets/js/comments_v.js?v=191" > < / script >
2021-12-14 22:48:37 +00:00
{% endif %}
< script src = "/assets/js/clipboard.js?v=190" > < / script >
{% if v and v.admin_level > 1 %}
< script src = "/assets/js/comments_admin.js?v=190" > < / script >
{% endif %}
{% include "expanded_image_modal.html" %}
< script src = "/assets/js/comments+submission_listing.js?v=190" > < / script >
< script src = "/assets/js/comments.js?v=190" > < / 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 %}
{% endif %}
< br >
< div id = "viewmore-{{offset}}" > < button id = "viewbtn" class = "btn btn-primary" onclick = "viewmore({{pid}},'{{sort}}',{{offset}})" > VIEW MORE COMMENTS< / a > < / div >
{% endif %}
< / body >