sfd
This commit is contained in:
parent
5b7c4a487b
commit
ae2bc86590
1 changed files with 44 additions and 47 deletions
|
@ -926,14 +926,13 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{% if v %}
|
||||||
<div id="comment-form-space-{{p.fullname}}" class="comment-write mb-3">
|
<div id="comment-form-space-{{p.fullname}}" class="comment-write mb-3">
|
||||||
<form id="reply-to-{{p.fullname}}" action="/comment" method="post">
|
<form id="reply-to-{{p.fullname}}" action="/comment" method="post">
|
||||||
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
||||||
<input type="hidden" name="parent_fullname" value="t2_{{p.id}}">
|
<input type="hidden" name="parent_fullname" value="t2_{{p.id}}">
|
||||||
<input autocomplete="off" id="reply-form-submission-{{p.fullname}}" type="hidden" name="submission" value="{{p.id}}">
|
<input autocomplete="off" id="reply-form-submission-{{p.fullname}}" type="hidden" name="submission" value="{{p.id}}">
|
||||||
{% if v %}
|
|
||||||
<textarea required autocomplete="off" {% if not (p and p.id in ADMIGGERS) %}{% if v.longpost %}minlength="280"{% elif v.bird %}maxlength="140"{% endif %}{% endif %} minlength="1" maxlength="10000" oninput="markdown('reply-form-body-{{p.fullname}}', 'form-preview-{{p.id}}');charLimit('reply-form-body-{{p.fullname}}','charcount-reply')" id="reply-form-body-{{p.fullname}}" data-fullname="{{p.fullname}}" class="comment-box form-control rounded" id="comment-form" name="body" form="reply-to-{{p.fullname}}" aria-label="With textarea" placeholder="Add your comment..." rows="3"></textarea>
|
<textarea required autocomplete="off" {% if not (p and p.id in ADMIGGERS) %}{% if v.longpost %}minlength="280"{% elif v.bird %}maxlength="140"{% endif %}{% endif %} minlength="1" maxlength="10000" oninput="markdown('reply-form-body-{{p.fullname}}', 'form-preview-{{p.id}}');charLimit('reply-form-body-{{p.fullname}}','charcount-reply')" id="reply-form-body-{{p.fullname}}" data-fullname="{{p.fullname}}" class="comment-box form-control rounded" id="comment-form" name="body" form="reply-to-{{p.fullname}}" aria-label="With textarea" placeholder="Add your comment..." rows="3"></textarea>
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
<div class="text-small font-weight-bold mt-1" id="charcount-reply" style="right: 1rem; bottom: 0.5rem; z-index: 3;"></div>
|
<div class="text-small font-weight-bold mt-1" id="charcount-reply" style="right: 1rem; bottom: 0.5rem; z-index: 3;"></div>
|
||||||
|
|
||||||
|
@ -961,12 +960,11 @@
|
||||||
<div id="form-preview-{{p.id}}" class="mb-3 mt-5"></div>
|
<div id="form-preview-{{p.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 and not g.webview %}target="_blank"{% endif %}>Formatting help</a></div>
|
<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>
|
||||||
</div>
|
</div>
|
||||||
|
{% else %}
|
||||||
{% if not v and not p.is_banned %}
|
|
||||||
<div class="comment-write mb-3">
|
<div class="comment-write mb-3">
|
||||||
<textarea autocomplete="off" maxlength="10000" class="comment-box form-control rounded" name="body" aria-label="With textarea" placeholder="Add your comment..." rows="3" onclick="location.href='/login?redirect={{request.path | urlencode}}';"></textarea>
|
<textarea autocomplete="off" maxlength="10000" class="comment-box form-control rounded" name="body" aria-label="With textarea" placeholder="Add your comment..." rows="3" onclick="location.href='/login?redirect={{request.path | urlencode}}';"></textarea>
|
||||||
</div>
|
</div>
|
||||||
{% if p.comment_count >= 2 %}
|
|
||||||
<div class="card border-0 mt-4">
|
<div class="card border-0 mt-4">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<h5 class="card-title">Jump in the discussion.</h5>
|
<h5 class="card-title">Jump in the discussion.</h5>
|
||||||
|
@ -978,7 +976,6 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% if p.replies %}
|
{% if p.replies %}
|
||||||
<div class="comment-section">
|
<div class="comment-section">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue