fix
parent
1d7303be51
commit
c682e76c5b
|
@ -171,7 +171,7 @@
|
||||||
|
|
||||||
|
|
||||||
{% if render_replies %}
|
{% if render_replies %}
|
||||||
{% if level<10 %}
|
{% if level<5 %}
|
||||||
<div id="replies-of-{{c.id}}" class="">
|
<div id="replies-of-{{c.id}}" class="">
|
||||||
{% set standalone=False %}
|
{% set standalone=False %}
|
||||||
{% for reply in replies %}
|
{% for reply in replies %}
|
||||||
|
@ -304,40 +304,7 @@
|
||||||
{{c.author.sig_html | safe}}
|
{{c.author.sig_html | safe}}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
||||||
{% if not c.parent_submission and c.author_id!=NOTIFICATIONS_ID and c.author_id!=AUTOJANNY_ID and c.author_id!=v.id %}
|
|
||||||
<a class="btn btn-primary" href="javascript:void(0)" onclick="document.getElementById('reply-m-{{c.id}}').classList.toggle('hidden')">Reply</a>
|
|
||||||
<pre></pre>
|
|
||||||
<div id="reply-m-{{c.id}}" class="hidden">
|
|
||||||
<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-input" id="reply-form-body-{{c.id}}" aria-label="With textarea" rows="3"></textarea>
|
|
||||||
<div class="comment-format" id="comment-format-bar-{{c.id}}">
|
|
||||||
<label class="btn btn-secondary format d-inline-block m-0" for="gif-reply-btn-{{c.id}}">
|
|
||||||
<i id="emoji-reply-btn-{{c.id}}" class="fas fa-smile-beam" onclick="loadEmojis('reply-form-body-{{c.id}}')" aria-hidden="true" data-bs-toggle="modal" data-bs-target="#emojiModal" data-bs-toggle="tooltip" data-bs-placement="bottom" title="" data-bs-original-title="Add Emoji"></i>
|
|
||||||
</label>
|
|
||||||
|
|
||||||
<a href="javascript:void(0)" onclick="document.getElementById('reply-m-{{c.id}}').classList.add('hidden')" class="hidden d-md-block btn btn-link text-muted ml-auto cancel-form">Cancel</a>
|
|
||||||
<a id="save-reply-to-{{c.id}}" class="hidden d-md-block btn btn-primary text-muted ml-2" onclick="post_reply('{{c.id}}');" href="javascript:void(0)">Reply</a>
|
|
||||||
</div>
|
</div>
|
||||||
<a href="javascript:void(0)" onclick="document.getElementById('reply-m-{{c.id}}').classList.add('hidden')" class="md:hidden btn btn-link text-muted ml-auto cancel-form">Cancel</a>
|
|
||||||
<a id="save-reply-to-{{c.id}}" class="md:hidden btn btn-primary text-white ml-2" onclick="post_reply('{{c.id}}');" href="javascript:void(0)">Reply</a>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
|
||||||
{% if c.parent_submission %}
|
|
||||||
<!-- Author's edit comment form -->
|
|
||||||
{% if v and v.id==c.author_id %}
|
|
||||||
{% include "/comments/CommentEditForm.html" %}
|
|
||||||
{% endif %}
|
|
||||||
<!-- Comment actions -->
|
|
||||||
<div id="comment-{{c.id}}-actions" class="py-3 {% if voted==1 %} upvoted{% elif voted==-1 %} downvoted{% endif %}">
|
|
||||||
{% include "/comments/CommentActions.html" %}
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue