2022-01-30 21:19:59 +00:00
{% if not ajax %}
{% if comment_info and not request.full_path.endswith('#context') %}
< script >
history.pushState(null, null, '#context');
< / script >
{% endif %}
2022-01-13 23:29:15 +00:00
2022-01-30 21:19:59 +00:00
{% if v %}
{% include "award_modal.html" %}
{% endif %}
2021-12-06 05:30:26 +00:00
2022-01-30 21:19:59 +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 >
2021-12-14 22:48:37 +00:00
< / div >
2021-10-15 14:08:27 +00:00
2022-01-30 21:19:59 +00:00
< div class = "pop-badges ml-3 mr-3 my-2" >
< / div >
2021-10-15 14:08:27 +00:00
2022-01-30 21:19:59 +00:00
< div class = "border-top d-flex align-items-center p-3 gap-3 smol" >
< span >
< strong class = "pop-postcount text-black" > < / strong >
< span class = "text-black" > posts< / span >
< / span >
< span class = "ml-3" >
< strong class = "pop-commentcount text-black" > < / strong >
< span class = "text-black" > comments< / span >
< / span >
< span class = "ml-3" >
< strong class = "pop-coins text-black" > < / strong >
< span class = "text-black" > coins< / span >
< / span >
< a href = "/" { % if v and v . newtab and not g . webview % } target = "_blank" { % endif % } class = "pop-viewmore ml-auto text-decoration-none" >
View
< i class = "fas fa-arrow-right fa-sm px-1" > < / i >
< / a >
< / div >
< / div >
2021-12-14 22:48:37 +00:00
< / div >
2022-01-30 21:19:59 +00:00
{% endif %}
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 %}
2022-01-12 01:19:13 +00:00
{% if (c.is_banned or c.deleted_utc or c.is_blocking) and not (v and v.admin_level > 1) and not (v and v.id==c.author_id) %}
2021-10-15 14:08:27 +00:00
< div id = "comment-{{c.id}}" class = "comment" >
2022-02-24 12:03:28 +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" >
2022-02-15 23:14:50 +00:00
< div id = "comment-{{c.id}}-only" class = "comment-{{c.id}}-only" >
2021-10-15 14:08:27 +00:00
< 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 %}
2022-01-17 21:26:03 +00:00
{% if c.is_banned %}removed by @{{c.ban_reason}}{% elif c.deleted_utc %}Deleted by author{% elif c.is_blocking %}You are blocking @{{c.author_name}}{% endif %}
2021-10-15 14:08:27 +00:00
< / div >
< / div >
2022-01-17 15:54:21 +00:00
2021-10-15 14:08:27 +00:00
{% if render_replies %}
2022-01-30 13:38:21 +00:00
{% if level< 9 % }
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-31 16:35:01 +00:00
< div id = "morecomment-{{c.id}}" class = "d-md-none mt-2 more-comments" >
2022-02-24 13:20:48 +00:00
< a href = "{{c.morecomments}}" > 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-31 16:35:01 +00:00
< div id = "morecomment-{{c.id}}" class = "mt-2 more-comments" >
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 >
2022-02-24 13:20:48 +00:00
< a class = "d-md-none" href = "{{c.morecomments}}" > 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 %}
2022-02-25 13:26:56 +00:00
< div class = "post-info mb-1 mr-2 {% if request.path == '/notifications' %}mt-5{% else %}mt-3{% endif %}" >
2021-12-14 22:48:37 +00:00
{% 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 %}
2022-01-16 08:08:55 +00:00
{% if c.author_id==v.id and replies and is_notification_page%}
< span class = "font-weight-bold" > Comment {{'Replies' if (replies | length)>1 else 'Reply'}}: < a href = "{{c.post.permalink}}" > {{c.post.realtitle(v) | safe}}< / a > < / span >
2021-12-14 22:48:37 +00:00
{% 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 %}
2022-02-24 12:32:11 +00:00
{% if c.post.sub %}
< span class = "ml-1" > in < a href = "/s/{{c.post.sub}}" { % if v and v . newtab and not g . webview % } target = "_blank" { % endif % } > /s/{{c.post.sub}}< / a > < / span >
{% endif %}
2021-12-14 22:48:37 +00:00
{% elif c.author_id==NOTIFICATIONS_ID or c.author_id==AUTOJANNY_ID %}
2022-02-12 18:44:43 +00:00
< span class = "font-weight-bold" > Notification< / span >
2021-12-10 02:47:43 +00:00
{% else %}
2022-02-21 01:35:01 +00:00
{% if c.sentto == 2 %}
2021-12-14 22:48:37 +00:00
< 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
2022-02-24 09:24:22 +00:00
{% if c.parent_comment and c.parent_comment.sentto %}
2022-01-05 00:56:36 +00:00
{% set isreply = True %}
2022-01-05 00:30:24 +00:00
{% else %}
2022-01-05 00:56:36 +00:00
{% set isreply = False %}
2022-01-05 00:30:24 +00:00
{% endif %}
2021-12-06 05:30:26 +00:00
2022-01-28 08:00:15 +00:00
{% if c.blackjack_result %}
{% set split_result = c.blackjack_result.split('_') %}
{% set blackjack_status = split_result[3] %}
{% set player_hand = split_result[0].replace('X', '10') %}
2022-02-04 17:41:32 +00:00
{% set dealer_hand = split_result[1].split('/')[0] if blackjack_status == 'active' else split_result[1] %}
2022-01-29 04:48:30 +00:00
{% set dealer_hand = dealer_hand.replace('X', '10') %}
2022-01-28 08:00:15 +00:00
{% set wager = split_result[4] %}
2022-02-07 09:29:56 +00:00
{% set kind = split_result[5] %}
2022-01-28 08:00:15 +00:00
{% endif %}
2022-02-14 01:39:48 +00:00
{% if c.wordle_result %}
{% set split_wordle_result = c.wordle_result.split('_') %}
{% set wordle_guesses = split_wordle_result[0] %}
{% set wordle_status = split_wordle_result[1] %}
{% set wordle_answer = split_wordle_result[2] %}
{% endif %}
2022-02-03 08:03:05 +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,request.path) %}collapsed{% endif %}" style = "{% if isreply %}padding-left:0!important;{% elif not c.unread %}border-left: 2px solid {% if c.ghost %}var(--primary){% else %}#{{c.author.namecolor}};{% endif %}{% endif %} {% if c.unread %}padding: 10px 10px 10px !important;{% endif %}" >
2022-01-05 00:56:36 +00:00
{% if not isreply %}
2022-01-22 10:14:15 +00:00
< span class = "comment-collapse-desktop d-none d-md-block" { % if not c . unread % } style = "border-left: 2px solid {% if c.ghost %}var(--primary){% else %}#{{c.author.namecolor}}{% endif %}" { % endif % } onclick = "collapse_comment('{{c.id}}')" > < / span >
2022-01-05 00:30:24 +00:00
{% endif %}
2021-12-14 22:48:37 +00:00
< div class = "comment-body" >
2021-12-05 02:10:21 +00:00
2022-02-15 23:14:50 +00:00
< div id = "{% if comment_info and comment_info.id == c.id %}context{%else%}comment-{{c.id}}-only{% endif %}" class = "comment-{{c.id}}-only 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 %}
2022-02-24 18:07:53 +00:00
< i class = "{{a.class_list}} px-1" data-bs-toggle = "tooltip" data-bs-placement = "bottom" title = "{{a.title}} Award{% if a.kind != 'ghost' %} given by @{{a.user.username}}{% endif %}" > < / i >
2021-12-05 02:05:00 +00:00
{% endfor %}
{% endif %}
2022-02-16 04:33:13 +00:00
{% if c.post %}
{% set sub = c.post.sub %}
{% if sub and c.author.exiled_from(sub) %}
2022-02-24 18:07:53 +00:00
< a role = "button" > < i class = "fas fa-campfire text-danger" data-bs-toggle = "tooltip" data-bs-placement = "bottom" title = "User has been exiled from /s/{{sub}}" > < / i > < / a >
2022-02-16 04:33:13 +00:00
{% endif %}
{% endif %}
2022-01-06 22:43:32 +00:00
{% if c.bannedfor %}
2022-02-24 18:07:53 +00:00
< a role = "button" > < i class = "fas fa-gavel text-danger" data-bs-toggle = "tooltip" data-bs-placement = "bottom" title = "User was banned for this comment{% if c.author.banned_by %} by @{{c.author.banned_by.username}}{% endif %}" > < / i > < / a >
2021-12-14 22:48:37 +00:00
{% endif %}
2022-02-24 12:03:28 +00:00
{% if c.active_flags %}< a class = "btn btn-primary" style = "padding:1px 5px; font-size:10px" role = "button" onclick = "document.getElementById('flaggers-{{c.id}}').classList.toggle('d-none')" > {{c.active_flags}} Reports< / a > {% endif %}
2021-12-14 22:48:37 +00:00
{% if c.over_18 %}< span class = "badge badge-danger text-small-extra mr-1" > +18< / span > {% endif %}
2022-02-24 18:07:53 +00:00
{% 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" title = "Shadowbanned by @{{c.author.shadowbanned}}" > < / i > {% endif %}
2021-12-26 01:03:21 +00:00
{% if c.is_pinned %}
2022-02-24 18:07:53 +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 = "Pinned by @{{c.is_pinned}}" { % if c . is_pinned_utc % } onmouseover = "pinned_timestamp('pinned-{{c.id}}')" data-timestamp = {{c.is_pinned_utc}} { % endif % } > < / i >
2021-12-14 22:48:37 +00:00
{% endif %}
2022-02-24 18:07:53 +00:00
{% if c.distinguish_level %}< i class = "fas fa-broom text-admin" data-bs-toggle = "tooltip" data-bs-placement = "bottom" title = "{{SITE_NAME}} Admin, speaking officially" > < / i > {% endif %}
{% if c.is_op and not c.ghost %}< i class = "fas fa-microphone-stand text-info" data-bs-toggle = "tooltip" data-bs-placement = "bottom" title = "OP" > < / i > {% endif %}
{% if c.is_bot %}< i class = "fas fa-robot text-info" data-bs-toggle = "tooltip" data-bs-placement = "bottom" 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 = "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 = "This user is blocking you." > < / i > {% endif %}
2021-12-13 12:49:37 +00:00
2022-01-22 10:14:15 +00:00
{% if c.ghost %}
2022-01-17 21:26:03 +00:00
👻
{% else %}
2022-02-08 19:01:23 +00:00
{% if SITE_NAME=='Drama' and c.author.house %}
2022-02-28 02:06:15 +00:00
< img src = "/assets/images/{{SITE_NAME}}/houses/{{c.author.house}}.webp?v=7" height = "20" data-bs-toggle = "tooltip" data-bs-placement = "bottom" title = "House {{c.author.house}}" alt = "House {{c.author.house}}" >
2022-02-04 16:17:26 +00:00
{% endif %}
2022-02-24 18:07:53 +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" title = "{{c.author.verified}}" > < / i >
2022-02-04 16:17:26 +00:00
{% endif %}
2022-02-10 20:35:16 +00:00
{% if not c.author %}
{{c.print()}}
{% endif %}
2022-02-23 05:19:57 +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 = "click" data-content-id = "popover" role = "button" 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 SITE_NAME = = ' Drama ' % } class = "mod" { % endif % } > {{c.author_name}}< / span > < / a >
2022-02-28 02:06:15 +00:00
{% if c.author.customtitle %} < bdi style = "color: #{{c.author.titlecolor}}" > {% if c.author.quadrant %}< img alt = "{{c.author.quadrant}} quadrant" loading = "lazy" height = "20" src = "/static/assets/images/quadrants/{{c.author.quadrant}}.webp?v=1008" > {% endif %}{{c.author.customtitle | safe}}< / bdi > {% endif %}
2022-01-17 21:26:03 +00:00
{% endif %}
2021-12-09 20:18:18 +00:00
2022-01-17 21:26:03 +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_name}}< / a > {% endif %}
2021-12-06 05:30:26 +00:00
2021-12-20 20:03:59 +00:00
{% if c.created_utc %}
< 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 >
{% endif %}
2021-12-14 22:48:37 +00:00
{% 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 %}
2022-01-22 12:52:23 +00:00
2022-01-29 04:48:30 +00:00
{% if c.treasure_amount and c.treasure_amount != '0' %}
2022-01-29 17:11:20 +00:00
< img class = "treasure" alt = "treasure" src = "/static/assets/images/chest.webp" width = "20" / >
2022-01-29 04:48:30 +00:00
{% if '-' in c.treasure_amount %}
< em > A Mimic Ate {{c.treasure_amount.replace('-', '')}} Coins!< / em >
{% else %}
< em > Found {{c.treasure_amount}} Coins!< / em >
{% endif %}
{% endif %}
2022-01-22 12:52:23 +00:00
{% if c.slots_result %}
2022-01-28 08:00:15 +00:00
< em style = "position: relative; top: 2px; margin-left: 0.5rem" > {{c.slots_result}}< / em >
{% endif %}
{% if c.blackjack_result %}
2022-02-07 09:29:56 +00:00
{% set currency_kind = "Coins" if kind == "coins" else "Marseybucks" %}
2022-02-04 17:41:32 +00:00
< em > {{player_hand}} vs. {{dealer_hand}}< / em >
{% if blackjack_status == 'active' and v.id == c.author_id %}
2022-02-24 12:03:28 +00:00
< button class = "btn btn-success small" style = "text-transform: uppercase; padding: 2px" onclick = "handle_blackjack_action('{{c.id}}', 'hit')" > Hit< / button >
< button class = "btn btn-danger small" style = "text-transform: uppercase; padding: 2px" onclick = "handle_blackjack_action('{{c.id}}', 'stay')" > Stay< / button >
2022-01-28 08:00:15 +00:00
{% elif blackjack_status == 'push' %}
2022-02-07 09:29:56 +00:00
< strong > Pushed. Refunded {{wager}} {{currency_kind}}.< / strong >
2022-02-04 17:41:32 +00:00
{% elif blackjack_status == 'bust' %}
2022-02-07 09:29:56 +00:00
< strong > Bust. Lost {{wager}} {{currency_kind}}.< / strong >
2022-02-04 17:41:32 +00:00
{% elif blackjack_status == 'lost' %}
2022-02-07 09:29:56 +00:00
< strong > Lost {{wager}} {{currency_kind}}.< / strong >
2022-02-04 17:41:32 +00:00
{% elif blackjack_status == 'won' %}
< strong > Won {{wager}} Coins.< / strong >
{% elif blackjack_status == 'blackjack' %}
2022-02-07 09:29:56 +00:00
< strong > Blackjack! Won {{(wager|int * 3/2)|round(0, 'floor')|int}} {{currency_kind}}.< / strong >
2022-01-28 08:00:15 +00:00
{% endif %}
2022-01-22 12:52:23 +00:00
{% endif %}
2022-02-14 01:39:48 +00:00
{% if c.wordle_result %}
2022-02-14 20:34:23 +00:00
< small > {{wordle_guesses}}< / small >
2022-02-14 01:39:48 +00:00
{% if wordle_status == 'active' and v.id == c.author_id %}
< input autocomplete = "off" id = "guess_box" type = "text" name = "guess" class = "form-control" maxsize = "4" style = "width: 200px ;
2022-02-24 12:03:28 +00:00
display: initial"placeholder="5-letter guess">< / input >
< button class = "btn btn-success small" style = "text-transform: uppercase; padding: 2px" onclick = "handle_wordle_action('{{c.id}}', document.getElementById('guess_box').value)" > Guess< / button >
2022-02-14 01:39:48 +00:00
{% elif wordle_status == 'won' %}
< strong > Correct!< / strong >
{% elif wordle_status == 'lost' %}
< strong > Lost. The answer was: {{wordle_answer}}< / strong >
{% endif %}
{% 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;" >
2022-01-06 19:05:13 +00:00
{% for f in c.flags %}
2022-02-18 09:39:12 +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 role = "button" onclick = "post_toast(this,'/del_report/comment/{{f.comment_id}}/{{f.user_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 %}
2022-02-12 15:49:04 +00:00
{% if c.award_count("tilt") %}
< style >
@keyframes c{{c.id}}-tilt {
2022-02-12 15:50:21 +00:00
from {transform: rotate(0.5deg);}
to {transform: rotate({{c.award_count("tilt")}}deg);}
2022-02-12 15:49:04 +00:00
}
2022-02-15 23:14:50 +00:00
.comment-{{c.id}}-only {
2022-02-12 15:49:04 +00:00
animation-name: c{{c.id}}-tilt !important;
2022-02-12 18:09:23 +00:00
animation-duration: 30s !important;
2022-02-12 15:49:04 +00:00
animation-iteration-count: infinite !important;
animation-direction: alternate !important;
animation-timing-function: linear !important;
}
< / style >
{% endif %}
2021-12-05 01:52:53 +00:00
2022-02-12 15:49:04 +00:00
< div id = "comment-text-{{c.id}}" class = "comment-text mb-0 {% if c.author.agendaposter %}agendaposter{% endif %}" >
2021-12-05 01:52:53 +00:00
{{c.realbody(v) | safe}}
< / 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" >
2021-12-28 12:41:26 +00:00
< input autocomplete = "off" type = "hidden" name = "formkey" value = "{{v.formkey}}" >
< textarea autocomplete = "off" { % 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 >
2021-12-14 22:48:37 +00:00
< 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" >
2022-02-24 18:07:53 +00:00
< a class = "btn btn-secondary format m-0" role = "button" onclick = "makeBold('comment-edit-body-{{c.id}}')" data-bs-toggle = "tooltip" data-bs-placement = "bottom" title = "Bold" > < i class = "fas fa-bold" > < / i > < / a >
2021-12-14 22:48:37 +00:00
2022-02-24 18:07:53 +00:00
< a class = "btn btn-secondary format m-0" role = "button" onclick = "makeItalics('comment-edit-body-{{c.id}}')" data-bs-toggle = "tooltip" data-bs-placement = "bottom" title = "Italicize" > < i class = "fas fa-italic" > < / i > < / a >
2021-12-14 22:48:37 +00:00
2022-02-24 18:07:53 +00:00
< a class = "btn btn-secondary format m-0" role = "button" onclick = "makeQuote('comment-edit-body-{{c.id}}')" data-bs-toggle = "tooltip" data-bs-placement = "bottom" title = "Quote" > < i class = "fas fa-quote-right" > < / i > < / a >
2021-12-14 22:48:37 +00:00
2022-02-24 18:07:53 +00:00
< small class = "btn btn-secondary format m-0" 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" title = "Add GIF" > < span class = "font-weight-bolder text-uppercase" > GIF< / span > < / small >
2021-12-14 22:48:37 +00:00
2022-02-24 18:07:53 +00:00
< small class = "btn btn-secondary format m-0" 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" title = "Add Emoji" > < i class = "fas fa-smile-beam" > < / 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 >
2022-02-24 19:05:04 +00:00
< input autocomplete = "off" id = "file-edit-reply-{{c.id}}" type = "file" multiple = "multiple" name = "file" accept = "image/*, video/*" { % if request . headers . get ( ' cf-ipcountry ' ) = = " T1 " % } disabled { % endif % } onchange = "changename('filename-edit-reply-{{c.id}}','file-edit-reply-{{c.id}}')" hidden >
2021-12-14 22:48:37 +00:00
< / label >
< / div >
2022-01-25 03:44:11 +00:00
< a id = "edit-btn-{{c.id}}" role = "button" form = "comment-edit-form-{{c.id}}" class = "btn btn-primary ml-2 fl-r commentmob" onclick = "comment_edit('{{c.id}}')" > Save Edit< / a >
2021-12-30 20:56:20 +00:00
< a id = "cancel-edit-{{c.id}}" role = "button" onclick = "toggleEdit('{{c.id}}')" class = "btn btn-link text-muted ml-auto cancel-form fl-r commentmob" > Cancel< / a >
2021-12-14 22:48:37 +00:00
< / form >
2022-01-29 05:25:40 +00:00
< div id = "preview-edit-{{c.id}}" class = "preview mb-3 mt-5" > < / div >
2021-12-29 08:29:22 +00:00
< div class = "form-text text-small p-0 m-0" > < a href = "/formatting" { % if v and v . newtab and not g . webview % } target = "_blank" { % endif % } > Formatting help< / a > < / div >
2021-12-14 22:48:37 +00:00
< / 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
2021-12-26 01:03:21 +00:00
< div class = "d-md-none mt-2" >
< div class = "post-actions" >
< ul class = "list-inline text-right d-flex" >
< li class = "list-inline-item mr-auto" >
{% if v and v.admin_level > 1 %}
2021-12-30 20:56:20 +00:00
< a role = "button" data-bs-toggle = "modal" data-bs-target = "#adminModal-{{c.id}}" >
2021-12-26 01:03:21 +00:00
< i class = "fas fa-broom" > < / i >
< / a >
{% endif %}
< / li >
{% if v %}
2022-01-02 18:11:38 +00:00
< a class = "list-inline-item mr-3" role = "button" onclick = "openReplyBox('reply-to-{{c.id}}')" > < i class = "fas fa-reply" style = "margin-top:0.35rem" > < / i > < / a >
2021-12-26 01:03:21 +00:00
{% endif %}
< li class = "list-inline-item" >
2021-12-30 20:56:20 +00:00
< a role = "button" data-bs-toggle = "modal" data-bs-target = "#actionsModal-{{c.id}}" >
2022-01-02 18:08:49 +00:00
< i class = "fas fa-ellipsis-h mt-1" > < / i >
2021-12-26 01:03:21 +00:00
< / a >
< / li >
2022-01-09 00:23:26 +00:00
{% if v and request.path.startswith('/@') and v.admin_level < 2 % }
2021-12-26 01:03:21 +00:00
< li id = "voting-{{c.id}}-mobile" class = "voting list-inline-item d-md-none" >
{% if voted==1 %}
< span class = "mr-2 arrow-up comment-{{c.id}}-up active" > < / span >
{% endif %}
2022-02-26 20:40:08 +00:00
< span class = "comment-mobile-score-{{c.id}} score comment-score-{{c.id}} {% if voted==1 %}score-up{% elif voted==-1%}score-down{% endif %}{% if c.controversial %} controversial{% endif %}" { % if not c . is_banned % } data-bs-toggle = "tooltip" data-bs-placement = "top" title = "+{{ups}} | -{{downs}}" { % endif % } > {{score}}< / span >
2021-12-18 19:09:52 +00:00
2021-12-26 01:03:21 +00:00
{% if voted==-1 %}
< span class = "ml-2 my-0 arrow-down comment-{{c.id}}-down active" > < / span >
{% endif %}
< / li >
{% elif v %}
< li id = "voting-{{c.id}}-mobile" class = "voting list-inline-item d-md-none" >
2022-02-26 20:40:08 +00:00
< span tabindex = "0" role = "button" onclick = "vote('comment-mobile', '{{c.id}}', '1')" class = "comment-mobile-{{c.id}}-up mx-0 pr-1 arrow-up upvote-button comment-{{c.id}}-up {% if voted==1 %}active{% endif %}" >
2021-12-26 01:03:21 +00:00
< / span >
2022-02-26 20:40:08 +00:00
< span class = "comment-mobile-score-{{c.id}} score comment-score-{{c.id}} {% if voted==1 %}score-up{% elif voted==-1%}score-down{% endif %}{% if c.controversial %} controversial{% endif %}" { % if not c . is_banned % } data-bs-toggle = "tooltip" data-bs-placement = "top" title = "+{{ups}} | -{{downs}}" { % endif % } > {{score}}< / span >
2021-12-26 01:03:21 +00:00
2022-02-26 20:40:08 +00:00
< span { % if environ . get ( ' DISABLE_DOWNVOTES ' ) = = ' 1 ' % } style = "display:None!important" { % endif % } tabindex = "0" role = "button" onclick = "vote('comment-mobile', '{{c.id}}', '-1')" class = "comment-mobile-{{c.id}}-down mx-0 pl-1 my-0 arrow-down downvote-button comment-{{c.id}}-down {% if voted==-1 %}active{% endif %}" >
2021-12-26 01:03:21 +00:00
< / span >
< / li >
{% else %}
< li id = "voting-{{c.id}}-mobile" class = "voting list-inline-item d-md-none" >
2022-02-26 20:40:08 +00:00
< span tabindex = "0" class = "arrow-{{c.id}}-mobile-up mx-0 pr-1 arrow-mobile-up" onclick = "location.href='/login';" >
2021-12-26 01:03:21 +00:00
< i class = "fas fa-arrow-alt-up mx-0" aria-hidden = "true" > < / i >
< / span >
2022-02-26 20:40:08 +00:00
< span class = "comment-mobile-score-{{c.id}} score{% if c.controversial %} controversial{% endif %}" { % if not c . is_banned % } data-bs-toggle = "tooltip" data-bs-placement = "top" title = "+{{ups}} | -{{downs}}" { % endif % } > {{score}}< / span >
2021-12-26 01:03:21 +00:00
2022-02-26 20:40:08 +00:00
< span tabindex = "0" class = "arrow-{{c.id}}-mobile-down arrow-mobile-down mx-0 pl-1 my-0" onclick = "location.href='/login';" >
2021-12-26 01:03:21 +00:00
< i class = "fas fa-arrow-alt-down mx-0" aria-hidden = "true" > < / i >
< / span >
< / li >
2021-12-18 19:09:52 +00:00
{% endif %}
2021-12-26 01:03:21 +00:00
< / ul >
< / div >
< / div >
2021-12-18 19:09:52 +00:00
< 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 19:30:34 +00:00
{% if voted==1 %}
2022-01-14 13:04:11 +00:00
< button class = "btn caction py-0 m-0 px-3 nobackground arrow-up mx-0 comment-{{c.id}}-up active" > < / button >
2021-12-18 19:30:34 +00:00
{% endif %}
2021-12-14 22:48:37 +00:00
{% elif v %}
2021-12-18 00:21:27 +00:00
2022-02-26 20:40:08 +00:00
< button tabindex = "0" role = "button" onclick = "vote('comment', '{{c.id}}', '1')" class = "comment-{{c.id}}-up btn caction py-0 m-0 px-3 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 %}
2022-02-26 20:40:08 +00:00
< button tabindex = "0" class = "comment-{{c.id}}-up btn caction nobackground py-0 m-0 px-3 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-19 23:24:21 +00:00
< button class = "btn caction nobackground p-0 m-0" >
2022-02-26 20:40:08 +00:00
< span data-bs-toggle = "tooltip" data-bs-placement = "top" title = "+{{ups}} | -{{downs}}" class = "comment-score-{{c.id}} score comment-score-{{c.id}} {% if voted==1 %}score-up{% elif voted==-1%}score-down{% endif %}{% if c.controversial %} controversial{% 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 19:30:34 +00:00
{% if voted==-1 %}
2021-12-30 21:50:14 +00:00
< li class = " arrow-down py-0 m-0 px-3 comment-{{c.id}}-down active" > < / li >
2021-12-18 19:30:34 +00:00
{% endif %}
2021-12-14 22:48:37 +00:00
{% elif v %}
2022-02-26 20:40:08 +00:00
< button { % if environ . get ( ' DISABLE_DOWNVOTES ' ) = = ' 1 ' % } style = "display:None!important" { % endif % } tabindex = "0" role = "button" onclick = "vote('comment', '{{c.id}}', '-1')" class = "comment-{{c.id}}-down btn caction py-0 m-0 px-3 nobackground arrow-down downvote-button 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
2022-02-26 20:40:08 +00:00
< button { % if environ . get ( ' DISABLE_DOWNVOTES ' ) = = ' 1 ' % } style = "display:None!important" { % endif % } tabindex = "0" role = "button" class = "comment-{{c.id}}-down btn caction py-0 m-0 px-3 nobackground 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
2022-01-22 10:14:15 +00:00
{% if not c.ghost %}< a href = "/votes?link={{c.fullname}}" class = "btn caction nobackground px-1 text-muted" > < i class = "fas fa-arrows-v" > < / i > Votes< / a > {% endif %}
2021-12-18 00:21:27 +00:00
2022-02-21 00:21:15 +00:00
< a class = "btn caction nobackground px-1 text-muted" href = "{{c.permalink}}" > < i class = "fas fa-book-open" > < / i > Context< / a >
2022-02-24 13:20:48 +00:00
< button class = "btn caction py-0 nobackground px-1 text-muted copy-link" data-clipboard-text = "{% if request.host == 'rdrama.net' %}https://rdrama.gay{{c.shortlink}}{% else %}{{c.permalink}}{% endif %}" > < i class = "fas fa-copy" > < / i > Copy link< / button >
2022-02-21 00:21:15 +00:00
2021-12-14 22:48:37 +00:00
{% if v %}
2022-02-21 00:24:01 +00:00
< button class = "btn caction py-0 nobackground px-1 text-muted" role = "button" onclick = "openReplyBox('reply-to-{{c.id}}')" > < i class = "fas fa-reply" aria-hidden = "true" > < / i > Reply< / button >
< button class = "btn caction py-0 nobackground px-1 text-muted" data-bs-toggle = "modal" data-bs-target = "#reportCommentModal" onclick = "report_commentModal('{{c.id}}','{{c.author_name}}',)" > < i class = "fas fa-flag fa-fw" > < / i > Report< / button >
2022-02-18 08:01:21 +00:00
< button class = "btn caction py-0 nobackground px-1 text-muted" role = "button" data-bs-toggle = "modal" data-bs-target = "#awardModal" onclick = "awardModal('/award_comment/{{c.id}}')" > < i class = "fas fa-gift" aria-hidden = "true" > < / i > Give Award< / button >
2021-12-18 19:30:34 +00:00
2022-02-16 04:53:31 +00:00
< button id = "unsave-{{c.id}}" class = "btn caction py-0 nobackground px-1 {% if c.id in v.saved_comment_idlist() %}d-md-inline-block{% endif %} text-muted d-none" role = "button" onclick = "post_toast3(this,'/unsave_comment/{{c.id}}','save-{{c.id}}','unsave-{{c.id}}')" > < i class = "fas fa-save" > < / i > Unsave< / button >
2021-12-18 19:30:34 +00:00
2022-02-14 01:33:07 +00:00
< button id = "save-{{c.id}}" class = "btn caction py-0 nobackground px-1 {% if c.id not in v.saved_comment_idlist() %}d-md-inline-block{% endif %} text-muted d-none" role = "button" onclick = "post_toast3(this,'/save_comment/{{c.id}}','save-{{c.id}}','unsave-{{c.id}}')" > < i class = "fas fa-save" > < / i > Save< / button >
2021-12-14 22:48:37 +00:00
{% endif %}
2022-02-21 00:24:01 +00:00
2022-01-17 15:54:21 +00:00
{% if c.parent_submission %}
{% if v and c.author_id == v.id %}
< button class = "btn caction py-0 nobackground px-1 text-muted" onclick = "toggleEdit('{{c.id}}')" > < i class = "fas fa-edit fa-fw" > < / i > Edit< / button >
2022-02-15 20:43:16 +00:00
< button id = "undelete-{{c.id}}" class = "btn caction py-0 nobackground px-1 text-muted {% if not c.deleted_utc %}d-none{% endif %}" onclick = "post_toast2(this,'/undelete/comment/{{c.id}}','delete-{{c.id}}','undelete-{{c.id}}');document.getElementById('comment-{{c.id}}').classList.remove('deleted')" > < i class = "fas fa-trash-alt fa-fw" > < / i > Undelete< / button >
< button id = "delete-{{c.id}}" class = "btn caction py-0 nobackground px-1 text-muted {% if c.deleted_utc %}d-none{% endif %}" data-bs-toggle = "modal" data-bs-target = "#deleteCommentModal" onclick = "delete_commentModal('{{c.id}}')" > < i class = "fas fa-trash-alt fa-fw" > < / i > Delete< / button >
2022-02-24 17:48:14 +00:00
{% elif v and c.body %}
< button class = "btn caction py-0 nobackground px-1 text-muted" onclick = "expandMarkdown(this,'{{c.id}}')" > < i class = "fas text-expand-icon-{{c.id}} fa-expand-alt" > < / i > < span > View source< / span > < / button >
2022-01-17 15:54:21 +00:00
{% endif %}
2021-12-14 22:48:37 +00:00
{% endif %}
2022-01-17 15:54:21 +00:00
2022-02-14 00:44:57 +00:00
{% if v %}
2022-02-21 01:01:53 +00:00
< button style = "margin-top:0.2rem" class = "btn caction py-0 nobackground px-1 text-muted" data-bs-toggle = "dropdown" aria-expanded = "false" > < i class = "fas fa-ellipsis-h fa-fw" > < / i > < / button >
2022-02-14 00:44:57 +00:00
< ul class = "dropdown-menu" >
{% if v.admin_level and v.id==c.author_id %}
2022-02-14 01:31:51 +00:00
< button id = "undistinguish-{{c.id}}" class = "dropdown-item list-inline-item d-none {% if c.distinguish_level %}d-md-block{% endif %} text-info" onclick = "post_toast3(this,'/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 = "dropdown-item list-inline-item d-none {% if not c.distinguish_level %}d-md-block{% endif %} text-info" onclick = "post_toast3(this,'/distinguish_comment/{{c.id}}','distinguish-{{c.id}}','undistinguish-{{c.id}}','yes')" > < i class = "fas fa-id-badge text-info fa-fw" > < / i > Distinguish< / button >
2022-02-14 00:44:57 +00:00
{% endif %}
2022-02-13 01:08:12 +00:00
2022-02-14 00:44:57 +00:00
{% if v.id != c.author_id and not c.ghost %}
2022-02-16 02:15:17 +00:00
< a id = "unblock-{{c.id}}" class = "dropdown-item text-success list-inline-item {% if not c.is_blocking %}d-none{% endif %}" role = "button" onclick = "post_toast2(this,'/settings/unblock?username={{c.author_name}}','block-{{c.id}}','unblock-{{c.id}}')" > < i class = "fas fa-eye text-success" > < / i > Unblock user< / a >
2022-02-14 00:44:57 +00:00
2022-02-16 02:15:17 +00:00
< a id = "block-{{c.id}}" class = "dropdown-item list-inline-item text-danger {% if c.is_blocking %}d-none{% endif %}" role = "button" onclick = "post_toast2(this,'/settings/block?username={{c.author_name}}','block-{{c.id}}','unblock-{{c.id}}')" > < i class = "fas fa-eye-slash text-danger" > < / i > Block user< / a >
2022-02-14 00:44:57 +00:00
{% endif %}
{% if c.post %}
{% set url = "" %}
{% if v.admin_level > 1%}
2022-02-16 02:15:17 +00:00
{% set url = "sticky_comment" %}
2022-02-14 00:44:57 +00:00
{% elif v.id == c.post.author_id %}
2022-02-16 02:15:17 +00:00
{% set url = "pin_comment" %}
2022-02-14 00:44:57 +00:00
{% elif c.post.sub and v.mods(c.post.sub) %}
2022-02-16 02:15:17 +00:00
{% set url = "mod_pin" %}
2022-02-14 00:44:57 +00:00
{% endif %}
{% if url != "" %}
2022-02-16 02:15:17 +00:00
< button id = "unpin-{{c.id}}" class = "dropdown-item list-inline-item {% if c.is_pinned %}d-md-block{% endif %} text-muted d-none text-info" data-bs-dismiss = "modal" data-bs-target = "#actionsModal-{{c.id}}" onclick = "post_toast3(this,'/un{{url}}/{{c.id}}','pin-{{c.id}}','unpin-{{c.id}}')" > < i class = "fas fa-thumbtack fa-rotate--45 text-info fa-fw" > < / i > Unpin< / button >
< button id = "pin-{{c.id}}" class = "dropdown-item list-inline-item {% if not c.is_pinned %}d-md-block{% endif %} text-muted d-none text-info" data-bs-dismiss = "modal" data-bs-target = "#actionsModal-{{c.id}}" onclick = "post_toast3(this,'/{{url}}/{{c.id}}','pin-{{c.id}}','unpin-{{c.id}}')" > < i class = "fas fa-thumbtack fa-rotate--45 text-info fa-fw" > < / i > Pin< / button >
2022-02-14 00:44:57 +00:00
{% endif %}
{% endif %}
{% if v.admin_level > 1 %}
{% if "/reported/" in request.path %}
2022-02-16 04:33:13 +00:00
< button class = "dropdown-item list-inline-item text-success" onclick = "approveComment('{{c.id}}')" > < i class = "fas fa-check text-success fa-fw" > < / i > Approve< / button >
< button class = "dropdown-item list-inline-item text-danger" onclick = "removeComment('{{c.id}}')" > < i class = "fas fa-ban text-danger fa-fw" > < / i > Remove< / button >
2022-02-14 00:44:57 +00:00
{% else %}
2022-02-16 04:33:13 +00:00
< button id = "approve-{{c.id}}" class = "dropdown-item list-inline-item d-none {% if c.is_banned %}d-md-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 = "dropdown-item list-inline-item d-none {% if not c.is_banned %}d-md-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 >
2022-02-14 00:44:57 +00:00
{% endif %}
{% endif %}
2022-02-16 04:33:13 +00:00
{% if c.post %}
{% set sub = c.post.sub %}
{% if sub and v.mods(sub) %}
2022-02-16 04:38:14 +00:00
< button id = "exile-{{c.id}}" class = "d-none {% if not c.author.exiled_from(sub) %}d-md-block{% endif %} dropdown-item list-inline-item text-danger" onclick = "post_toast2(this,'/exile/comment/{{c.id}}','exile-{{c.id}}','unexile-{{c.id}}')" > < i class = "fas fa-campfire text-danger fa-fw" > < / i > Exile user< / button >
< button id = "unexile-{{c.id}}" class = "d-none {% if c.author.exiled_from(sub) %}d-md-block{% endif %} dropdown-item list-inline-item text-success" onclick = "post_toast2(this,'/unexile/comment/{{c.id}}','exile-{{c.id}}','unexile-{{c.id}}')" > < i class = "fas fa-campfire text-success fa-fw" > < / i > Unexile user< / button >
2022-02-16 04:33:13 +00:00
{% endif %}
{% endif %}
2022-02-14 00:44:57 +00:00
{% if c.parent_submission and (c.author_id==v.id or v.admin_level > 1) %}
2022-02-14 01:31:51 +00:00
< button id = "unmark-{{c.id}}" class = "dropdown-item list-inline-item d-none {% if c.over_18 %}d-md-block{% endif %} text-danger" onclick = "post_toast3(this,'/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 = "dropdown-item list-inline-item d-none {% if not c.over_18 %}d-md-block{% endif %} text-danger" onclick = "post_toast3(this,'/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 >
2022-02-14 00:44:57 +00:00
{% endif %}
{% if v.admin_level > 1 and v.id != c.author_id %}
2022-02-14 01:31:51 +00:00
< button id = "unban-{{c.id}}" class = "dropdown-item list-inline-item d-none {% if c.author.is_suspended %}d-md-block{% endif %} text-success" id = "unexile-comment-{{c.id}}" onclick = "post_toast3(this,'/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 = "dropdown-item list-inline-item d-none {% if not c.author.is_suspended %}d-md-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_name}}')" > < i class = "fas fa-user-slash text-danger fa-fw" > < / i > Ban user< / button >
2022-02-14 00:44:57 +00:00
{% endif %}
{% if v.admin_level > 1 and c.oauth_app %}
< a class = " text-muted" href = "{{c.oauth_app.permalink}}/comments" > < i class = "fas fa-code fa-fw" > < / i > API App< / a >
{% endif %}
< / ul >
2021-12-14 22:48:37 +00:00
{% endif %}
2022-02-14 00:44:57 +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
2022-02-24 17:50:52 +00:00
{% if v and v.id != c.author_id and c.body %}
2022-02-26 20:09:54 +00:00
< textarea autocomplete = "off" class = "d-none card border my-2 p-3 comment-box form-control rounded" id = "markdown-{{c.id}}" readonly > {{c.body.strip()}}< / textarea >
2022-01-17 15:54:21 +00:00
{% endif %}
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" >
2021-12-28 12:41:26 +00:00
< input autocomplete = "off" type = "hidden" name = "formkey" value = "{{v.formkey}}" >
< input autocomplete = "off" type = "hidden" name = "parent_fullname" value = "{{c.fullname}}" >
< input autocomplete = "off" id = "reply-form-submission-{{c.fullname}}" type = "hidden" name = "submission" value = "{{c.post.id}}" >
< textarea autocomplete = "off" { % 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 >
2021-12-14 22:48:37 +00:00
< 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}}" >
2022-02-24 18:07:53 +00:00
< a class = "btn btn-secondary format m-0" role = "button" onclick = "makeBold('reply-form-body-{{c.fullname}}')" data-bs-toggle = "tooltip" data-bs-placement = "bottom" title = "Bold" > < i class = "fas fa-bold" > < / i > < / a >
2021-12-14 22:48:37 +00:00
2022-02-24 18:07:53 +00:00
< a class = "btn btn-secondary format m-0" role = "button" onclick = "makeItalics('reply-form-body-{{c.fullname}}')" data-bs-toggle = "tooltip" data-bs-placement = "bottom" title = "Italicize" > < i class = "fas fa-italic" > < / i > < / a >
2021-12-14 22:48:37 +00:00
2022-02-24 18:07:53 +00:00
< a class = "btn btn-secondary format m-0" role = "button" onclick = "makeQuote('reply-form-body-{{c.fullname}}')" data-bs-toggle = "tooltip" data-bs-placement = "bottom" title = "Quote" > < i class = "fas fa-quote-right" > < / i > < / a >
2021-12-14 22:48:37 +00:00
2022-02-24 18:07:53 +00:00
< label class = "btn btn-secondary format m-0" for = "gif-reply-btn-{{c.fullname}}" 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" title = "Add GIF" >
2022-01-21 17:21:46 +00:00
< span id = "gif-reply-btn-{{c.fullname}}" class = "font-weight-bolder text-uppercase" > GIF< / span >
2021-12-14 22:48:37 +00:00
< / label >
2022-02-24 18:07:53 +00:00
< label class = "btn btn-secondary format m-0" for = "gif-reply-btn-{{c.fullname}}" 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" title = "Add Emoji" >
2022-01-21 17:21:46 +00:00
< i id = "emoji-reply-btn-{{c.fullname}}" class = "fas fa-smile-beam" > < / i >
2021-12-14 22:48:37 +00:00
< / 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 >
2022-02-24 19:05:04 +00:00
< input autocomplete = "off" id = "file-upload-reply-{{c.fullname}}" type = "file" multiple = "multiple" name = "file" accept = "image/*, video/*" { % if request . headers . get ( ' cf-ipcountry ' ) = = " T1 " % } disabled { % endif % } onchange = "changename('filename-show-reply-{{c.fullname}}','file-upload-reply-{{c.fullname}}')" hidden >
2021-12-14 22:48:37 +00:00
< / label >
< / div >
2022-02-24 12:03:28 +00:00
< a id = "save-reply-to-{{c.fullname}}" class = "btn btn-primary ml-2 fl-r commentmob" onclick = "post_comment('{{c.fullname}}', '{{c.post.id}}')" role = "button" > Comment< / a >
2021-12-30 20:56:20 +00:00
< a role = "button" 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 >
2021-12-14 22:48:37 +00:00
< / form >
2022-01-29 05:25:40 +00:00
< div id = "reply-edit-{{c.id}}" class = "preview mb-3 mt-5" > < / div >
2021-12-29 08:29:22 +00:00
< div class = "form-text text-small p-0 m-0" > < a href = "/formatting" { % if v and v . newtab and not g . webview % } target = "_blank" { % endif % } > Formatting help< / a > < / div >
2021-12-14 22:48:37 +00:00
< / 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 %}
2022-02-14 20:43:47 +00:00
{% if level< 9 or request . path = = ' / notifications ' % }
< div id = "replies-of-{{c.id}}" >
{% for reply in replies %}
{{single_comment(reply, level=level+1)}}
{% endfor %}
< / div >
{% elif replies %}
< div id = "morecomments-{{c.id}}" class = "mt-2 more-comments" >
< button id = "btn-{{c.id}}" class = "d-none d-md-block btn btn-primary" onclick = "morecomments('{{c.id}}')" > More comments< / button >
2022-02-24 13:20:48 +00:00
< a class = "d-md-none" href = "{{c.morecomments}}" > More comments < i class = "fas fa-long-arrow-right ml-1" > < / i > < / a >
2022-02-14 20:43:47 +00:00
< / div >
{% endif %}
2022-02-21 01:35:01 +00:00
{% if request.path == '/notifications' and c.level == 1 and c.sentto and not c.parent_submission and c.author_id not in (NOTIFICATIONS_ID, AUTOJANNY_ID) %}
2022-01-05 00:11:07 +00:00
< a class = "btn btn-primary" role = "button" onclick = "openReplyBox('reply-message-{{c.id}}')" > Reply< / a >
< pre > < / pre >
< div id = "reply-message-{{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 autocomplete = "off" type = "hidden" name = "formkey" value = "{{v.formkey}}" >
2022-01-19 06:20:05 +00:00
< textarea autocomplete = "off" minlength = "1" 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" oninput = "markdown('reply-form-body-{{c.id}}', 'message-reply-{{c.id}}')" > < / textarea >
2022-01-05 00:11:07 +00:00
< div class = "comment-format" id = "comment-format-bar-{{c.id}}" >
2022-02-24 18:07:53 +00:00
< label class = "btn btn-secondary format m-0" for = "gif-reply-btn-{{c.id}}" 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 = "Add Emoji" >
2022-01-21 17:21:46 +00:00
< i id = "emoji-reply-btn-{{c.id}}" class = "fas fa-smile-beam" > < / i >
2022-01-05 00:11:07 +00:00
< / label >
< / div >
< a role = "button" onclick = "document.getElementById('reply-message-{{c.id}}').classList.add('d-none')" class = "btn btn-link text-muted ml-auto cancel-form" > Cancel< / a >
2022-02-24 12:03:28 +00:00
< a id = "save-reply-to-{{c.id}}" class = "btn btn-primary ml-2" onclick = "post_reply('{{c.id}}') " role = "button" > Reply< / a >
2022-01-05 00:11:07 +00:00
< / form >
2022-01-29 05:25:40 +00:00
< div id = "message-reply-{{c.id}}" class = "preview mt-2" > < / div >
2022-01-05 00:11:07 +00:00
< / div >
< / div >
{% endif %}
2021-10-15 14:08:27 +00:00
{% 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 >
2021-12-30 05:27:22 +00:00
< button class = "close" data-bs-dismiss = "modal" aria-label = "Close" >
2021-12-14 22:48:37 +00:00
< span aria-hidden = "true" > < i class = "far fa-times" > < / i > < / span >
< / button >
< / div >
< div class = "modal-body" >
< ul class = "list-group comment-actions" >
2022-02-24 16:23:17 +00:00
{% if not c.ghost %}< a href = "/votes?link={{c.fullname}}" > < li class = "list-group-item" > < i class = "fas fa-arrows-v mr-2" > < / i > Votes< / li > < / a > {% endif %}
2021-12-14 22:48:37 +00:00
2022-02-24 16:23:17 +00:00
< a class = "list-group-item" href = "{{c.permalink}}" > < i class = "fas fa-book-open mr-2" > < / i > Context< / a >
2021-12-17 21:01:47 +00:00
2022-02-24 16:23:17 +00:00
< a role = "button" class = "list-group-item copy-link" data-bs-dismiss = "modal" data-clipboard-text = "{% if request.host == 'rdrama.net' %}https://rdrama.gay{{c.shortlink}}{% else %}{{c.permalink}}{% endif %}" > < i class = "fas fa-copy mr-2" > < / i > Copy link< / a >
2022-02-21 00:21:15 +00:00
2021-12-14 22:48:37 +00:00
{% if v %}
2022-02-24 16:23:17 +00:00
< a role = "button" data-bs-toggle = "modal" data-bs-dismiss = "modal" data-bs-target = "#reportCommentModal" onclick = "report_commentModal('{{c.id}}','{{c.author_name}}')" class = "list-group-item" > < i class = "fas fa-flag mr-2" > < / i > Report< / a >
2021-12-18 23:42:35 +00:00
2022-02-24 16:23:17 +00:00
< a class = "list-group-item" role = "button" data-bs-toggle = "modal" data-bs-target = "#awardModal" onclick = "awardModal('/award_comment/{{c.id}}')" > < i class = "fas fa-gift mr-1" aria-hidden = "true" > < / i > Give Award< / a >
2021-12-14 22:48:37 +00:00
2022-02-24 16:23:17 +00:00
< a id = "save2-{{c.id}}" class = "list-group-item {% if c.id in v.saved_comment_idlist() %}d-none{% endif %}" role = "button" data-bs-dismiss = "modal" onclick = "post_toast2(this,'/save_comment/{{c.id}}','save2-{{c.id}}','unsave2-{{c.id}}')" > < i class = "fas fa-save mr-2" > < / i > Save< / a >
2021-12-14 22:48:37 +00:00
2022-02-24 16:23:17 +00:00
< a id = "unsave2-{{c.id}}" class = "list-group-item {% if c.id not in v.saved_comment_idlist() %}d-none{% endif %}" role = "button" onclick = "post_toast2(this,'/unsave_comment/{{c.id}}','save2-{{c.id}}','unsave2-{{c.id}}')" data-bs-dismiss = "modal" > < i class = "fas fa-save mr-2" > < / i > Unsave< / a >
2021-12-14 22:48:37 +00:00
2021-12-17 21:01:47 +00:00
{% if c.author_id == v.id %}
2022-02-24 16:23:17 +00:00
< a role = "button" data-bs-dismiss = "modal" onclick = "toggleEdit('{{c.id}}')" class = "list-group-item" > < i class = "fas fa-edit mr-2" > < / i > Edit< / a >
2021-12-14 22:48:37 +00:00
2022-01-17 16:31:29 +00:00
{% if v.admin_level == 1 %}
2022-02-24 16:23:17 +00:00
< a id = "distinguish2-{{c.id}}" class = "list-group-item {% if c.distinguish_level %}d-none{% endif %} text-info" role = "button" onclick = "post_toast2(this,'/distinguish_comment/{{c.id}}','distinguish2-{{c.id}}','undistinguish2-{{c.id}}')" data-bs-dismiss = "modal" > < i class = "fas fa-id-badge text-info mr-2" > < / i > Distinguish< / a >
< a id = "undistinguish2-{{c.id}}" class = "list-group-item {% if not c.distinguish_level %}d-none{% endif %} text-info" role = "button" onclick = "post_toast2(this,'/distinguish_comment/{{c.id}}','distinguish2-{{c.id}}','undistinguish2-{{c.id}}')" data-bs-dismiss = "modal" > < i class = "fas fa-id-badge text-info mr-2" > < / i > Undistinguish< / a >
2022-01-12 01:19:13 +00:00
{% endif %}
2022-02-24 16:23:17 +00:00
< a id = "undelete2-{{c.id}}" class = "{% if not c.deleted_utc %}d-none{% endif %} list-group-item text-success" role = "button" onclick = "post_toast2(this,'/undelete/comment/{{c.id}}', 'delete2-{{c.id}}', 'undelete2-{{c.id}}');document.getElementById('comment-{{c.id}}').classList.remove('deleted')" data-bs-dismiss = "modal" > < i class = "far fa-trash-alt text-success mr-2" > < / i > Undelete< / a >
2022-02-14 23:14:59 +00:00
2022-02-24 16:23:17 +00:00
< a id = "delete2-{{c.id}}" class = "{% if c.deleted_utc %}d-none{% endif %} list-group-item text-danger" role = "button" data-bs-toggle = "modal" data-bs-dismiss = "modal" data-bs-target = "#deleteCommentModal" onclick = "delete_commentModal('{{c.id}}')" > < i class = "far fa-trash-alt text-danger mr-2" > < / i > Delete< / a >
2021-12-14 22:48:37 +00:00
2022-02-24 16:23:17 +00:00
< a id = "mark2-{{c.id}}" class = "{% if c.over_18 %}d-none{% endif %} list-group-item text-danger" role = "button" onclick = "post_toast2(this,'/toggle_comment_nsfw/{{c.id}}','mark2-{{c.id}}','unmark2-{{c.id}}')" data-bs-dismiss = "modal" > < i class = "fas fa-eye-evil text-danger mr-2" > < / i > Mark +18< / a >
< a id = "unmark2-{{c.id}}" class = "{% if not c.over_18 %}d-none{% endif %} list-group-item text-danger" role = "button" onclick = "post_toast2(this,'/toggle_comment_nsfw/{{c.id}}','mark2-{{c.id}}','unmark2-{{c.id}}')" data-bs-dismiss = "modal" > < i class = "fas fa-eye-evil text-danger mr-2" > < / i > Unmark +18< / a >
2021-12-17 21:01:47 +00:00
{% else %}
2022-01-17 17:02:07 +00:00
{% if c.body %}
2022-02-24 17:48:14 +00:00
< a role = "button" data-bs-dismiss = "modal" onclick = "expandMarkdown(this,'{{c.id}}')" class = "list-group-item" > < i class = "fas text-expand-icon-{{c.id}} fa-expand-alt mr-2" > < / i > < span > View source< / span > < / a >
2022-01-17 17:02:07 +00:00
{% endif %}
2022-01-17 15:54:21 +00:00
2022-01-22 10:14:15 +00:00
{% if not c.ghost %}
2022-02-24 16:23:17 +00:00
< a id = "unblock2-{{c.id}}" data-bs-dismiss = "modal" class = "text-success list-group-item {% if not c.is_blocking %}d-none{% endif %}" role = "button" onclick = "post_toast2(this,'/settings/unblock?username={{c.author_name}}','block2-{{c.id}}','unblock2-{{c.id}}')" data-bs-dismiss = "modal" > < i class = "fas fa-eye-slash text-success mr-2" > < / i > Unblock user< / a >
< a id = "prompt2-{{c.id}}" data-bs-dismiss = "modal" class = "blockuser list-group-item d-none text-danger" role = "button" onclick = "post_toast2(this,'/settings/block?username={{c.author_name}}','prompt2-{{c.id}}','unblock2-{{c.id}}')" > < i class = "fas fa-eye-slash fa-fw text-danger mr-2" > < / i > Are you sure?< / a >
< a id = "block2-{{c.id}}" class = "{% if c.is_blocking %}d-none{% endif %} list-group-item text-danger" role = "button" 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 mr-2" > < / i > Block user< / a >
2022-01-17 23:23:45 +00:00
{% endif %}
2021-12-17 21:01:47 +00:00
{% endif %}
2021-12-14 22:48:37 +00:00
2022-02-13 01:08:12 +00:00
{% if v.admin_level < 2 % }
{% if c.post and v.id == c.post.author_id %}
2022-02-24 16:23:17 +00:00
< a id = "pin2-{{c.id}}" class = "list-group-item {% if c.is_pinned %}d-none{% endif %} text-info" role = "button" data-bs-target = "#actionsModal-{{c.id}}" onclick = "post_toast2(this,'/pin_comment/{{c.id}}','pin2-{{c.id}}','unpin2-{{c.id}}')" data-bs-dismiss = "modal" > < i class = "fas fa-thumbtack fa-rotate--45 text-info mr-2" > < / i > Pin< / a >
< a id = "unpin2-{{c.id}}" class = "list-group-item {% if not c.is_pinned %}d-none{% endif %} text-info" role = "button" data-bs-target = "#actionsModal-{{c.id}}" onclick = "post_toast2(this,'/unpin_comment/{{c.id}}','pin2-{{c.id}}','unpin2-{{c.id}}')" data-bs-dismiss = "modal" > < i class = "fas fa-thumbtack fa-rotate--45 text-info mr-2" > < / i > Unpin< / a >
2022-02-13 01:08:12 +00:00
{% elif c.post.sub and v.mods(c.post.sub) %}
2022-02-24 16:23:17 +00:00
< a id = "pin2-{{c.id}}" class = "list-group-item {% if c.is_pinned %}d-none{% endif %} text-info" role = "button" data-bs-target = "#actionsModal-{{c.id}}" onclick = "post_toast2(this,'/mod_pin/{{c.id}}','pin2-{{c.id}}','unpin2-{{c.id}}')" data-bs-dismiss = "modal" > < i class = "fas fa-thumbtack fa-rotate--45 text-info mr-2" > < / i > Pin< / a >
< a id = "unpin2-{{c.id}}" class = "list-group-item {% if not c.is_pinned %}d-none{% endif %} text-info" role = "button" data-bs-target = "#actionsModal-{{c.id}}" onclick = "post_toast2(this,'/mod_unpin/{{c.id}}','pin2-{{c.id}}','unpin2-{{c.id}}')" data-bs-dismiss = "modal" > < i class = "fas fa-thumbtack fa-rotate--45 text-info mr-2" > < / i > Unpin< / a >
2022-02-13 01:08:12 +00:00
{% endif %}
2021-12-14 22:48:37 +00:00
{% endif %}
2022-02-16 04:33:13 +00:00
{% if c.post %}
{% set sub = c.post.sub %}
{% if sub and v.mods(sub) %}
2022-02-24 16:23:17 +00:00
< a data-bs-dismiss = "modal" id = "exile2-{{c.id}}" class = "{% if c.author.exiled_from(sub) %}d-none{% endif %} list-group-item text-danger" onclick = "post_toast2(this,'/exile/comment/{{c.id}}','exile2-{{c.id}}','unexile2-{{c.id}}')" > < i class = "fas fa-campfire text-danger mr-2" > < / i > Exile user< / a >
< a data-bs-dismiss = "modal" id = "unexile2-{{c.id}}" class = "{% if not c.author.exiled_from(sub) %}d-none{% endif %} list-group-item text-success" onclick = "post_toast2(this,'/unexile/comment/{{c.id}}','exile2-{{c.id}}','unexile2-{{c.id}}')" > < i class = "fas fa-campfire text-success mr-2" > < / i > Unexile user< / a >
2022-02-16 04:33:13 +00:00
{% endif %}
{% endif %}
2021-12-14 22:48:37 +00:00
{% 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 >
2021-12-30 05:27:22 +00:00
< button class = "close" data-bs-dismiss = "modal" aria-label = "Close" >
2021-12-17 21:01:47 +00:00
< 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 %}
2022-01-17 16:31:29 +00:00
{% if v.id == c.author_id %}
2022-02-24 16:23:17 +00:00
< a id = "distinguish2-{{c.id}}" class = "list-group-item {% if c.distinguish_level %}d-none{% endif %} text-info" role = "button" onclick = "post_toast2(this,'/distinguish_comment/{{c.id}}','distinguish2-{{c.id}}','undistinguish2-{{c.id}}')" data-bs-dismiss = "modal" > < i class = "fas fa-id-badge text-info mr-2" > < / i > Distinguish< / a >
< a id = "undistinguish2-{{c.id}}" class = "list-group-item {% if not c.distinguish_level %}d-none{% endif %} text-info" role = "button" onclick = "post_toast2(this,'/distinguish_comment/{{c.id}}','distinguish2-{{c.id}}','undistinguish2-{{c.id}}')" data-bs-dismiss = "modal" > < i class = "fas fa-id-badge text-info mr-2" > < / i > Undistinguish< / a >
2022-01-17 16:31:29 +00:00
{% endif %}
2022-02-24 16:23:17 +00:00
< a id = "pin2-{{c.id}}" class = "list-group-item {% if c.is_pinned %}d-none{% endif %} text-info" role = "button" data-bs-target = "#adminModal-{{c.id}}" onclick = "post_toast2(this,'/sticky_comment/{{c.id}}','pin2-{{c.id}}','unpin2-{{c.id}}')" data-bs-dismiss = "modal" > < i class = "fas fa-thumbtack fa-rotate--45 text-info mr-2" > < / i > Pin< / a >
< a id = "unpin2-{{c.id}}" class = "list-group-item {% if not c.is_pinned %}d-none{% endif %} text-info" role = "button" data-bs-target = "#adminModal-{{c.id}}" onclick = "post_toast2(this,'/unsticky_comment/{{c.id}}','pin2-{{c.id}}','unpin2-{{c.id}}')" data-bs-dismiss = "modal" > < i class = "fas fa-thumbtack fa-rotate--45 text-info mr-2" > < / i > Unpin< / a >
2021-12-17 21:01:47 +00:00
2022-02-24 16:23:17 +00:00
< a id = "mark2-{{c.id}}" class = "{% if c.over_18 %}d-none{% endif %} list-group-item text-danger" role = "button" onclick = "post_toast2(this,'/toggle_comment_nsfw/{{c.id}}','mark2-{{c.id}}','unmark2-{{c.id}}')" data-bs-dismiss = "modal" > < i class = "fas fa-eye-evil text-danger mr-2" > < / i > Mark +18< / a >
< a id = "unmark2-{{c.id}}" class = "{% if not c.over_18 %}d-none{% endif %} list-group-item text-danger" role = "button" onclick = "post_toast2(this,'/toggle_comment_nsfw/{{c.id}}','mark2-{{c.id}}','unmark2-{{c.id}}')" data-bs-dismiss = "modal" > < i class = "fas fa-eye-evil text-danger mr-2" > < / i > Unmark +18< / a >
2021-12-17 21:01:47 +00:00
{% endif %}
2021-12-14 22:48:37 +00:00
2022-01-12 01:19:13 +00:00
{% if v.id != c.author_id %}
2022-02-24 16:23:17 +00:00
< a id = "ban2-{{c.id}}" class = "{% if c.author.is_banned %}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_name}}')" role = "button" > < i class = "fas fa-user-slash text-danger fa-fw mr-2" > < / i > Ban user< / a >
< a id = "unban2-{{c.id}}" class = "{% if not c.author.is_banned %}d-none{% endif %} list-group-item text-success" role = "button" onclick = "post_toast2(this,'/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 mr-2" > < / i > Unban user< / a >
2021-12-14 22:48:37 +00:00
{% endif %}
2021-12-17 21:01:47 +00:00
{% if "/reported/" in request.path %}
2022-02-24 16:23:17 +00:00
< a class = "list-group-item text-danger" role = "button" onclick = "removeComment2('{{c.id}}')" data-bs-dismiss = "modal" > < i class = "fas fa-ban text-danger mr-2" > < / i > Remove< / a >
< a class = "list-group-item text-success" role = "button" onclick = "approveComment2('{{c.id}}')" data-bs-dismiss = "modal" > < i class = "fas fa-check text-success mr-2" > < / i > Approve< / a >
2021-12-17 21:01:47 +00:00
{% else %}
2022-02-24 16:23:17 +00:00
< a id = "remove2-{{c.id}}" class = "{% if c.is_banned %}d-none{% endif %} list-group-item text-danger" role = "button" onclick = "removeComment2('{{c.id}}','approve2-{{c.id}}','remove2-{{c.id}}')" data-bs-dismiss = "modal" > < i class = "fas fa-ban text-danger mr-2" > < / i > Remove< / a >
< a id = "approve2-{{c.id}}" class = "{% if not c.is_banned %}d-none{% endif %} list-group-item text-success" role = "button" onclick = "approveComment2('{{c.id}}','approve2-{{c.id}}','remove2-{{c.id}}')" data-bs-dismiss = "modal" > < i class = "fas fa-check text-success mr-2" > < / i > Approve< / a >
2021-12-17 21:01:47 +00:00
{% endif %}
{% if c.oauth_app %}
2022-02-24 16:23:17 +00:00
< a href = "{{c.oauth_app.permalink}}/comments" class = "list-group-item text-info" > < i class = "fas fa-code text-info mr-2" > < / i > API App< / a >
2021-12-17 21:01:47 +00:00
{% 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 %}
2022-01-30 21:19:59 +00:00
{% if not ajax %}
{% if v %}
{% include "gif_modal.html" %}
{% include "emoji_modal.html" %}
{% if v.admin_level > 1 %}
{% include "ban_modal.html" %}
{% endif %}
2021-12-05 02:05:00 +00:00
2022-02-14 23:14:59 +00:00
< 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 d-none d-md-flex" >
< h5 class = "modal-title" > Delete 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 = "modal-body text-center" >
2021-12-05 02:05:00 +00:00
2022-02-14 23:14:59 +00:00
< div class = "py-4" >
2022-02-18 21:29:37 +00:00
< i class = "fas fa-trash-alt text-muted d-none d-md-block" style = "font-size: 3.5rem;" > < / i >
2021-12-14 22:48:37 +00:00
< / div >
2022-02-14 23:14:59 +00:00
< div class = "h4 d-md-none" > Delete comment?< / div >
< p class = "d-none d-md-block" > Your comment will be deleted everywhere on {{SITE_NAME}}.< / p >
< p class = "text-muted d-md-none" > Your comment will be deleted everywhere on {{SITE_NAME}}.< / p >
< button id = "deleteCommentButton" class = "btn btn-danger btn-block mt-5" data-bs-dismiss = "modal" > Delete comment< / button >
< button class = "btn btn-secondary btn-block" data-bs-dismiss = "modal" > Cancel< / button >
2022-01-30 21:19:59 +00:00
< / div >
< / div >
2022-02-14 23:14:59 +00:00
< / div >
< / div >
2022-01-30 21:19:59 +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 class = "close" data-bs-dismiss = "modal" aria-label = "Close" >
< span aria-hidden = "true" > < i class = "far fa-times" > < / i > < / span >
< / button >
2021-12-14 22:48:37 +00:00
< / div >
2022-01-30 21:19:59 +00:00
< 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 class = "modal-footer" >
< button class = "btn btn-link text-muted" data-bs-dismiss = "modal" > Cancel< / button >
< 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 class = "btn btn-primary" data-bs-dismiss = "modal" > Close< / button >
< / div >
2021-12-14 22:48:37 +00:00
< / div >
< / div >
< / div >
< / div >
2022-01-30 21:19:59 +00:00
{% endif %}
{% if v %}
2022-02-28 02:06:15 +00:00
< script src = "/static/assets/js/marked.js?v=248" > < / script >
< script src = "/static/assets/js/comments_v.js?v=261" > < / script >
2021-12-14 22:48:37 +00:00
{% endif %}
2022-01-30 21:19:59 +00:00
2022-02-28 02:06:15 +00:00
< script src = "/static/assets/js/clipboard.js?v=250" > < / script >
2022-01-30 21:19:59 +00:00
{% if v and v.admin_level > 1 %}
2022-02-28 02:06:15 +00:00
< script src = "/static/assets/js/comments_admin.js?v=250" > < / script >
2022-01-30 21:19:59 +00:00
{% endif %}
{% include "expanded_image_modal.html" %}
2022-02-28 02:06:15 +00:00
< script src = "/static/assets/js/comments+submission_listing.js?v=253" > < / script >
< script src = "/static/assets/js/comments.js?v=252" > < / script >
2022-01-30 21:19:59 +00:00
< script >
{% if p and (not v or v.highlightcomments) %}
comments = JSON.parse(localStorage.getItem("comment-counts")) || {}
lastCount = comments['{{p.id}}']
2022-02-24 18:07:53 +00:00
redhtml = '< i style = "color:red !important" class = "text-admin fas fa-circle" data-bs-toggle = "tooltip" data-bs-placement = "bottom" title = "Unread" > < / i > '
2022-01-30 21:19:59 +00:00
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 %}
2021-12-14 22:48:37 +00:00
{% if offset %}
{% if p %}
{% set pid = p.id %}
{% endif %}
2022-01-30 21:19:59 +00:00
< br >
2022-02-01 01:17:38 +00:00
< div id = "viewmore-{{offset}}" > < button id = "viewbtn" class = "btn btn-primary" onclick = "viewmore({{pid}},'{{sort}}',{{offset}},{{ids}})" > VIEW MORE COMMENTS< / a > < / div >
2021-12-14 22:48:37 +00:00
{% endif %}
2022-01-30 21:19:59 +00:00
2021-12-14 22:48:37 +00:00
< / body >