forked from rDrama/rDrama
fix
parent
2216812f04
commit
62528fe3a5
|
@ -271,9 +271,7 @@
|
||||||
<div id="{% if comment_info and comment_info.id == c.id %}context{%else%}comment-{{c.id}}-only{% endif %}" class="comment-anchor relative {% if comment_info and comment_info.id == c.id %}context{%endif%}{% if c.is_banned %} banned{% endif %}{% if c.deleted_utc %} deleted{% endif %}">
|
<div id="{% if comment_info and comment_info.id == c.id %}context{%else%}comment-{{c.id}}-only{% endif %}" class="comment-anchor relative {% if comment_info and comment_info.id == c.id %}context{%endif%}{% if c.is_banned %} banned{% endif %}{% if c.deleted_utc %} deleted{% endif %}">
|
||||||
|
|
||||||
<div class="user-info">
|
<div class="user-info">
|
||||||
|
|
||||||
<span class="comment-collapse-icon" onclick="collapse_comment('{{c.id}}')"></span>
|
<span class="comment-collapse-icon" onclick="collapse_comment('{{c.id}}')"></span>
|
||||||
|
|
||||||
<span id="reddot-{{c.id}}"></span>
|
<span id="reddot-{{c.id}}"></span>
|
||||||
|
|
||||||
{% if c.awards %}
|
{% if c.awards %}
|
||||||
|
@ -283,96 +281,94 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if c.post and c.post.award_count("ghosts") %}
|
{% if c.post and c.post.award_count("ghosts") %}
|
||||||
<span>👻</span>
|
<span>👻</span>
|
||||||
{% else %}
|
{% else %}
|
||||||
<div class="flex items-center space-x-2 md:-ml-2 mb-1 text-sm text-gray-500 leading-normal">
|
<div class="flex items-center space-x-2 md:-ml-2 mb-1 text-sm text-gray-500 leading-normal">
|
||||||
|
|
||||||
<div class="relative md:hidden {{ 'santa' if c.author.patron else 'cap' }}">
|
<div class="relative md:hidden {{ 'santa' if c.author.patron else 'cap' }}">
|
||||||
<img loading="lazy" src="{{ c.author.profile_url }}" class="w-9 h-9 p-[3px] bg-white border border-gray-300 object-cover lozad" alt="{{ c.author.username }} avatar"/>
|
<img loading="lazy" src="{{ c.author.profile_url }}" class="w-9 h-9 p-[3px] bg-white border border-gray-300 object-cover lozad" alt="{{ c.author.username }} avatar"/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<a class="text-sm font-bold" data-bs-placement="bottom" data-bs-toggle="popover" data-bs-trigger="focus" data-content-id="popover-{{c.id}}" tabindex="0" style="color:#{{c.author.namecolor}};">
|
<a class="text-sm font-bold" data-bs-placement="bottom" data-bs-toggle="popover" data-bs-trigger="focus" data-content-id="popover-{{c.id}}" tabindex="0" style="color:#{{c.author.namecolor}};">
|
||||||
{% if c.author.patron and not c.distinguish_level %}
|
{% if c.author.patron and not c.distinguish_level %}
|
||||||
<span class="patron" style="background-color:#{{c.author.namecolor}};">
|
<span class="patron" style="background-color:#{{c.author.namecolor}};">
|
||||||
{{c.author.username}}
|
{{c.author.username}}
|
||||||
|
</span>
|
||||||
|
{% elif c.distinguish_level and 'rama' in request.host %}
|
||||||
|
<span class="mod" style="background-color:#{{c.author.namecolor}};">
|
||||||
|
{{c.author.username}}
|
||||||
|
</span>
|
||||||
|
{% else %}
|
||||||
|
<span>
|
||||||
|
{{c.author.username}}
|
||||||
|
</span>
|
||||||
|
{% endif %}
|
||||||
|
</a>
|
||||||
|
|
||||||
|
{% if c.author.customtitle %}
|
||||||
|
<bdi style="color: #{{c.author.titlecolor}}">
|
||||||
|
{{c.author.customtitle | safe }}
|
||||||
|
</bdi>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% if c.author.verified %}
|
||||||
|
<i class="fas fa-badge-check align-middle ml-1" style="color:{% if c.author.verifiedcolor %}#{{c.author.verifiedcolor}}{% else %}#1DA1F2{% endif %}" data-bs-toggle="tooltip" data-bs-placement="bottom" title="" data-bs-original-title="{{c.author.verified}}"></i>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% if c.bannedfor and c.author.banned_by %}
|
||||||
|
<a href="javascript:void(0)"><i class="fad fa-gavel text-danger" data-bs-toggle="tooltip" data-bs-placement="bottom" title="" data-bs-original-title="User was banned for this comment by @{{c.author.banned_by.username}}"></i></a>
|
||||||
|
{% endif %}
|
||||||
|
{% if c.active_flags %}
|
||||||
|
<a class="btn btn-primary" style="padding:1px 5px; font-size:10px;" href="javascript:void(0)" onclick="document.getElementById('flaggers-{{c.id}}').classList.toggle('hidden')">{{c.active_flags}} Reports</a>
|
||||||
|
{% endif %}
|
||||||
|
{% if c.over_18 %}
|
||||||
|
<span class="badge badge-danger text-small-extra mr-1">+18</span>
|
||||||
|
{% endif %}
|
||||||
|
{% if v and v.admin_level==6 and c.author.shadowbanned %}
|
||||||
|
<i class="fas fa-user-times text-admin" data-bs-toggle="tooltip" data-bs-placement="bottom" title="" data-bs-original-title="Shadowbanned by @{{c.author.shadowbanned}}"></i>
|
||||||
|
{% endif %}
|
||||||
|
{% if c.is_pinned %}
|
||||||
|
<i id='pinned-{{c.id}}' class="fas fa-thumbtack fa-rotate--45 text-admin" data-bs-toggle="tooltip" data-bs-placement="bottom" title="" data-bs-original-title="Pinned {% if c.is_pinned.startswith('t:') %}until {{c.is_pinned[2:]}}{% else %}by @{{c.is_pinned}}{%endif%}"></i>
|
||||||
|
{% endif %}
|
||||||
|
{% if c.distinguish_level %}
|
||||||
|
<i class="fas fa-broom text-admin" data-bs-toggle="tooltip" data-bs-placement="bottom" title="" data-bs-original-title="{{'SITE_NAME' | app_config}} Admin, speaking officially"></i>
|
||||||
|
{% endif %}
|
||||||
|
{% if c.is_op %}
|
||||||
|
<i class="fas fa-microphone-stand text-info" data-bs-toggle="tooltip" data-bs-placement="bottom" title="" data-bs-original-title="OP"></i>
|
||||||
|
{% endif %}
|
||||||
|
{% if c.is_bot %}
|
||||||
|
<i class="fad fa-robot text-info" data-bs-toggle="tooltip" data-bs-placement="bottom" title="" data-bs-original-title="Bot"></i>
|
||||||
|
{% endif %}
|
||||||
|
{% if c.is_blocking %}
|
||||||
|
<i class="fas fa-user-minus text-warning" data-bs-toggle="tooltip" data-bs-placement="bottom" title="" data-bs-original-title="You're blocking this user, but you can see this comment because you're an admin"></i>
|
||||||
|
{% endif %}
|
||||||
|
{% if c.is_blocked %}
|
||||||
|
<i class="fas fa-user-minus text-danger" data-bs-toggle="tooltip" data-bs-placement="bottom" title="" data-bs-original-title="This user is blocking you."></i>
|
||||||
|
{% endif %}
|
||||||
|
{% if c.parent_comment_id and not standalone and level<=7 %}
|
||||||
|
<a href="#comment-{{ c.parent_comment_id }}-only" class="text-gray-500 hover:text-gray-400 user-name-reply">
|
||||||
|
<i class="fas fa-reply fa-sm fa-fw fa-flip-horizontal"></i>
|
||||||
|
<span class="hidden sm:inline-block">replying to</span>
|
||||||
|
<span class="font-bold">
|
||||||
|
{% if c.post and c.post.award_count("ghosts") %}
|
||||||
|
👻
|
||||||
|
{% else %}
|
||||||
|
{{ c.parent_comment.author.username }}{% endif %}
|
||||||
|
</span>
|
||||||
|
</a>
|
||||||
|
{% endif %}
|
||||||
|
<span onmouseover="timestamp('timestamp-{{c.id}}','{{c.created_utc}}')" id="timestamp-{{c.id}}" data-bs-toggle="tooltip" data-bs-placement="bottom" class="time-stamp">
|
||||||
|
{{c.age_string}}
|
||||||
</span>
|
</span>
|
||||||
{% elif c.distinguish_level and 'rama' in request.host %}
|
{% if c.edited_utc %}
|
||||||
<span class="mod" style="background-color:#{{c.author.namecolor}};">
|
<span onmouseover="timestamp('time-edit-{{c.id}}','{{c.edited_utc}}')" id="time-edit-{{c.id}}" class="time-edited italic">
|
||||||
{{c.author.username}}
|
Edited {{c.edited_string}}
|
||||||
</span>
|
|
||||||
{% else %}
|
|
||||||
<span>
|
|
||||||
{{c.author.username}}
|
|
||||||
</span>
|
</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</a>
|
</div>
|
||||||
|
|
||||||
{% if c.author.customtitle %}
|
|
||||||
<bdi style="color: #{{c.author.titlecolor}}">
|
|
||||||
{{c.author.customtitle | safe }}
|
|
||||||
</bdi>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if c.author.verified %}
|
|
||||||
<i class="fas fa-badge-check align-middle ml-1" style="color:{% if c.author.verifiedcolor %}#{{c.author.verifiedcolor}}{% else %}#1DA1F2{% endif %}" data-bs-toggle="tooltip" data-bs-placement="bottom" title="" data-bs-original-title="{{c.author.verified}}"></i>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% if c.bannedfor and c.author.banned_by %}
|
|
||||||
<a href="javascript:void(0)"><i class="fad fa-gavel text-danger" data-bs-toggle="tooltip" data-bs-placement="bottom" title="" data-bs-original-title="User was banned for this comment by @{{c.author.banned_by.username}}"></i></a>
|
|
||||||
{% endif %}
|
|
||||||
{% if c.active_flags %}
|
|
||||||
<a class="btn btn-primary" style="padding:1px 5px; font-size:10px;" href="javascript:void(0)" onclick="document.getElementById('flaggers-{{c.id}}').classList.toggle('hidden')">{{c.active_flags}} Reports</a>
|
|
||||||
{% endif %}
|
|
||||||
{% if c.over_18 %}
|
|
||||||
<span class="badge badge-danger text-small-extra mr-1">+18</span>
|
|
||||||
{% endif %}
|
|
||||||
{% if v and v.admin_level==6 and c.author.shadowbanned %}
|
|
||||||
<i class="fas fa-user-times text-admin" data-bs-toggle="tooltip" data-bs-placement="bottom" title="" data-bs-original-title="Shadowbanned by @{{c.author.shadowbanned}}"></i>
|
|
||||||
{% endif %}
|
|
||||||
{% if c.is_pinned %}
|
|
||||||
<i id='pinned-{{c.id}}' class="fas fa-thumbtack fa-rotate--45 text-admin" data-bs-toggle="tooltip" data-bs-placement="bottom" title="" data-bs-original-title="Pinned {% if c.is_pinned.startswith('t:') %}until {{c.is_pinned[2:]}}{% else %}by @{{c.is_pinned}}{%endif%}"></i>
|
|
||||||
{% endif %}
|
|
||||||
{% if c.distinguish_level %}
|
|
||||||
<i class="fas fa-broom text-admin" data-bs-toggle="tooltip" data-bs-placement="bottom" title="" data-bs-original-title="{{'SITE_NAME' | app_config}} Admin, speaking officially"></i>
|
|
||||||
{% endif %}
|
|
||||||
{% if c.is_op %}
|
|
||||||
<i class="fas fa-microphone-stand text-info" data-bs-toggle="tooltip" data-bs-placement="bottom" title="" data-bs-original-title="OP"></i>
|
|
||||||
{% endif %}
|
|
||||||
{% if c.is_bot %}
|
|
||||||
<i class="fad fa-robot text-info" data-bs-toggle="tooltip" data-bs-placement="bottom" title="" data-bs-original-title="Bot"></i>
|
|
||||||
{% endif %}
|
|
||||||
{% if c.is_blocking %}
|
|
||||||
<i class="fas fa-user-minus text-warning" data-bs-toggle="tooltip" data-bs-placement="bottom" title="" data-bs-original-title="You're blocking this user, but you can see this comment because you're an admin"></i>
|
|
||||||
{% endif %}
|
|
||||||
{% if c.is_blocked %}
|
|
||||||
<i class="fas fa-user-minus text-danger" data-bs-toggle="tooltip" data-bs-placement="bottom" title="" data-bs-original-title="This user is blocking you."></i>
|
|
||||||
{% endif %}
|
|
||||||
{% if c.parent_comment_id and not standalone and level<=7 %}
|
|
||||||
<a href="#comment-{{ c.parent_comment_id }}-only" class="text-gray-500 hover:text-gray-400 user-name-reply">
|
|
||||||
<i class="fas fa-reply fa-sm fa-fw fa-flip-horizontal"></i>
|
|
||||||
<span class="hidden sm:inline-block">replying to</span>
|
|
||||||
<span class="font-bold">
|
|
||||||
{% if c.post and c.post.award_count("ghosts") %}
|
|
||||||
👻
|
|
||||||
{% else %}
|
|
||||||
{{ c.parent_comment.author.username }}{% endif %}
|
|
||||||
</span>
|
|
||||||
</a>
|
|
||||||
{% endif %}
|
|
||||||
<span onmouseover="timestamp('timestamp-{{c.id}}','{{c.created_utc}}')" id="timestamp-{{c.id}}" data-bs-toggle="tooltip" data-bs-placement="bottom" class="time-stamp">
|
|
||||||
{{c.age_string}}
|
|
||||||
</span>
|
|
||||||
{% if c.edited_utc %}
|
|
||||||
<span onmouseover="timestamp('time-edit-{{c.id}}','{{c.edited_utc}}')" id="time-edit-{{c.id}}" class="time-edited italic">
|
|
||||||
Edited {{c.edited_string}}
|
|
||||||
</span>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% if c.active_flags %}
|
{% if c.active_flags %}
|
||||||
<div id="flaggers-{{c.id}}" class="flaggers hidden">
|
<div id="flaggers-{{c.id}}" class="flaggers hidden">
|
||||||
<strong><i class="far fa-fw fa-flag"></i> Reported by:</strong>
|
<strong><i class="far fa-fw fa-flag"></i> Reported by:</strong>
|
||||||
|
|
Loading…
Reference in New Issue