forked from rDrama/rDrama
post
parent
29c4bec4d4
commit
a9f6f5a0e0
|
@ -460,9 +460,10 @@ def sub_sidebar(v, sub):
|
||||||
return redirect(f'/h/{sub.name}/settings')
|
return redirect(f'/h/{sub.name}/settings')
|
||||||
|
|
||||||
|
|
||||||
@app.get("/sub_toggle/<mode>")
|
@app.post("/sub_toggle")
|
||||||
@auth_required
|
@auth_required
|
||||||
def sub_toggle(mode, v):
|
def sub_toggle(v):
|
||||||
|
mode = request.values.get('mode')
|
||||||
try: mode = int(mode)
|
try: mode = int(mode)
|
||||||
except: abort(400)
|
except: abort(400)
|
||||||
|
|
||||||
|
|
|
@ -74,9 +74,9 @@
|
||||||
|
|
||||||
<a role="button" class="btn btn-secondary" onclick="document.getElementById('linkbtn').classList.toggle('d-none');">Link Accounts</a>
|
<a role="button" class="btn btn-secondary" onclick="document.getElementById('linkbtn').classList.toggle('d-none');">Link Accounts</a>
|
||||||
<form action="/admin/link_accounts" method="post">
|
<form action="/admin/link_accounts" method="post">
|
||||||
<input autocomplete="off" type="hidden" name="formkey" value="{{v.formkey}}">
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
||||||
<input autocomplete="off" type="hidden" name="u1" value="{{u1.id}}">
|
<input type="hidden" name="u1" value="{{u1.id}}">
|
||||||
<input autocomplete="off" type="hidden" name="u2" value="{{u2.id}}">
|
<input type="hidden" name="u2" value="{{u2.id}}">
|
||||||
<input autocomplete="off" type="submit" id="linkbtn" class="btn btn-primary d-none" value="Confirm Link: {{u1.username}} and {{u2.username}}">
|
<input autocomplete="off" type="submit" id="linkbtn" class="btn btn-primary d-none" value="Confirm Link: {{u1.username}} and {{u2.username}}">
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
<div class="body w-lg-100">
|
<div class="body w-lg-100">
|
||||||
<label for="edit-{{app.id}}-author" class="mb-0 w-lg-25">User</label>
|
<label for="edit-{{app.id}}-author" class="mb-0 w-lg-25">User</label>
|
||||||
<input autocomplete="off" id="edit-{{app.id}}-author" class="form-control" type="text" name="name" value="{{app.author.username}}" readonly=readonly>
|
<input autocomplete="off" id="edit-{{app.id}}-author" class="form-control" type="text" name="name" value="{{app.author.username}}" readonly=readonly>
|
||||||
<input autocomplete="off" type="hidden" name="formkey" value="{{v.formkey}}">
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
||||||
<label for="edit-{{app.id}}-name" class="mb-0 w-lg-25">App Name</label>
|
<label for="edit-{{app.id}}-name" class="mb-0 w-lg-25">App Name</label>
|
||||||
<input autocomplete="off" id="edit-{{app.id}}-name" class="form-control" type="text" name="name" value="{{app.app_name}}" readonly=readonly>
|
<input autocomplete="off" id="edit-{{app.id}}-name" class="form-control" type="text" name="name" value="{{app.app_name}}" readonly=readonly>
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
<h5>User Award Grant</h5>
|
<h5>User Award Grant</h5>
|
||||||
|
|
||||||
<form action="/admin/awards", method="post">
|
<form action="/admin/awards", method="post">
|
||||||
<input autocomplete="off" type="hidden" name="formkey" value="{{v.formkey}}">
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
||||||
<label for="input-username">Username</label><br>
|
<label for="input-username">Username</label><br>
|
||||||
<input autocomplete="off" id="input-username" class="form-control mb-3" type="text" name="username" required>
|
<input autocomplete="off" id="input-username" class="form-control mb-3" type="text" name="username" required>
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
<h5>Badge Grant</h5>
|
<h5>Badge Grant</h5>
|
||||||
|
|
||||||
<form action="/admin/badge_grant", method="post">
|
<form action="/admin/badge_grant", method="post">
|
||||||
<input autocomplete="off" type="hidden" name="formkey" value="{{v.formkey}}">
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
||||||
|
|
||||||
|
|
||||||
<label for="input-username">Username</label><br>
|
<label for="input-username">Username</label><br>
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
<h5>Badge Remove</h5>
|
<h5>Badge Remove</h5>
|
||||||
|
|
||||||
<form action="/admin/badge_remove", method="post">
|
<form action="/admin/badge_remove", method="post">
|
||||||
<input autocomplete="off" type="hidden" name="formkey" value="{{v.formkey}}">
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
||||||
|
|
||||||
|
|
||||||
<label for="input-username">Username</label><br>
|
<label for="input-username">Username</label><br>
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
|
|
||||||
|
|
||||||
<form action="/admin/banned_domains" method="post">
|
<form action="/admin/banned_domains" method="post">
|
||||||
<input autocomplete="off" type="hidden" name="formkey" value="{{v.formkey}}">
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
||||||
<input autocomplete="off" name="domain" placeholder="Enter domain here.." class="form-control" required>
|
<input autocomplete="off" name="domain" placeholder="Enter domain here.." class="form-control" required>
|
||||||
<input autocomplete="off" name="reason" placeholder="Enter ban reason here.." oninput="document.getElementById('ban-submit').disabled=false" class="form-control">
|
<input autocomplete="off" name="reason" placeholder="Enter ban reason here.." oninput="document.getElementById('ban-submit').disabled=false" class="form-control">
|
||||||
<input autocomplete="off" id="ban-submit" type="submit" class="btn btn-primary" value="Toggle ban" disabled>
|
<input autocomplete="off" id="ban-submit" type="submit" class="btn btn-primary" value="Toggle ban" disabled>
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
<div class="body d-lg-flex">
|
<div class="body d-lg-flex">
|
||||||
<div class="w-lg-100">
|
<div class="w-lg-100">
|
||||||
<form id="profile-settings" action="/admin/sidebar" method="post">
|
<form id="profile-settings" action="/admin/sidebar" method="post">
|
||||||
<input autocomplete="off" type="hidden" name="formkey" value="{{v.formkey}}">
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
||||||
<textarea autocomplete="off" maxlength="10000" class="form-control rounded" id="bio-text" aria-label="With textarea" placeholder="Enter sidebar here..." rows="50" name="sidebar" form="profile-settings">{% if sidebar %}{{sidebar}}{% endif %}</textarea>
|
<textarea autocomplete="off" maxlength="10000" class="form-control rounded" id="bio-text" aria-label="With textarea" placeholder="Enter sidebar here..." rows="50" name="sidebar" form="profile-settings">{% if sidebar %}{{sidebar}}{% endif %}</textarea>
|
||||||
|
|
||||||
<div class="d-flex mt-2">
|
<div class="d-flex mt-2">
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div id="awardModalBody" class="modal-body mb-3">
|
<div id="awardModalBody" class="modal-body mb-3">
|
||||||
<form id="awardTarget" class="pt-3 pb-0" action="" method="post">
|
<form id="awardTarget" class="pt-3 pb-0" action="" method="post">
|
||||||
<input autocomplete="off" type="hidden" name="formkey", value="{{v.formkey}}">
|
<input type="hidden" name="formkey", value="{{v.formkey}}">
|
||||||
<div class="card-columns award-columns awards-wrapper">
|
<div class="card-columns award-columns awards-wrapper">
|
||||||
{% for award in v.user_awards %}
|
{% for award in v.user_awards %}
|
||||||
<a role="button" id="{{award.kind}}" class="card" onclick="pick('{{award.kind}}', {{award.price}} <= {{v.procoins}}, {{award.price}} <= {{v.coins}})">
|
<a role="button" id="{{award.kind}}" class="card" onclick="pick('{{award.kind}}', {{award.price}} <= {{v.procoins}}, {{award.price}} <= {{v.coins}})">
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
|
|
||||||
<form id="banModalForm">
|
<form id="banModalForm">
|
||||||
|
|
||||||
<input autocomplete="off" type="hidden" name="formkey" value="{{v.formkey}}">
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
||||||
|
|
||||||
<label for="ban-modal-link">Public ban reason (optional)</label>
|
<label for="ban-modal-link">Public ban reason (optional)</label>
|
||||||
<textarea autocomplete="off" maxlength="64" name="reason" form="banModalForm" class="form-control" id="ban-modal-link" aria-label="With textarea" placeholder="Enter reason"></textarea>
|
<textarea autocomplete="off" maxlength="64" name="reason" form="banModalForm" class="form-control" id="ban-modal-link" aria-label="With textarea" placeholder="Enter reason"></textarea>
|
||||||
|
|
|
@ -295,7 +295,7 @@
|
||||||
{% if v and v.id==c.author_id %}
|
{% if v and v.id==c.author_id %}
|
||||||
<div id="comment-edit-{{c.id}}" class="d-none comment-write collapsed child">
|
<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">
|
<form id="comment-edit-form-{{c.id}}" action="/edit_comment/{{c.id}}" method="post" enctype="multipart/form-data">
|
||||||
<input autocomplete="off" type="hidden" name="formkey" value="{{v.formkey}}">
|
<input 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>
|
<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>
|
||||||
|
|
||||||
<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="text-small font-weight-bold mt-1" id="charcount-edit-{{c.id}}" style="right: 1rem; bottom: 0.5rem; z-index: 3;"></div>
|
||||||
|
@ -541,8 +541,8 @@
|
||||||
<div id="reply-to-{{c.id}}" class="d-none">
|
<div id="reply-to-{{c.id}}" class="d-none">
|
||||||
<div id="comment-form-space-{{c.fullname}}" class="comment-write collapsed child">
|
<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">
|
<form id="reply-to-t3_{{c.id}}" action="/comment" method="post" enctype="multipart/form-data">
|
||||||
<input autocomplete="off" type="hidden" name="formkey" value="{{v.formkey}}">
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
||||||
<input autocomplete="off" type="hidden" name="parent_fullname" value="{{c.fullname}}">
|
<input 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}}">
|
<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>
|
<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>
|
||||||
|
|
||||||
|
@ -598,7 +598,7 @@
|
||||||
<div id="reply-message-{{c.id}}" class="d-none">
|
<div id="reply-message-{{c.id}}" class="d-none">
|
||||||
<div id="comment-form-space-{{c.id}}" class="comment-write collapsed child">
|
<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">
|
<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}}">
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
||||||
<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>
|
<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>
|
||||||
<div class="comment-format" id="comment-format-bar-{{c.id}}">
|
<div class="comment-format" id="comment-format-bar-{{c.id}}">
|
||||||
<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">
|
<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">
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
<form id="contactform" action="/send_admin" method="post" enctype="multipart/form-data">
|
<form id="contactform" action="/send_admin" method="post" enctype="multipart/form-data">
|
||||||
|
|
||||||
<label for="input-message" class="mt-3">Your message</label>
|
<label for="input-message" class="mt-3">Your message</label>
|
||||||
<input autocomplete="off" type="hidden" name="formkey" value="{{v.formkey}}">
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
||||||
<textarea autocomplete="off" maxlength="10000" id="input-message" form="contactform" name="message" class="form-control" required></textarea>
|
<textarea autocomplete="off" maxlength="10000" id="input-message" form="contactform" name="message" class="form-control" required></textarea>
|
||||||
<label class="btn btn-secondary m-0 mt-3" for="file-upload">
|
<label class="btn btn-secondary m-0 mt-3" for="file-upload">
|
||||||
<div id="filename"><i class="far fa-image"></i></div>
|
<div id="filename"><i class="far fa-image"></i></div>
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
<div class="btn-toolbar justify-content-center mb-4">
|
<div class="btn-toolbar justify-content-center mb-4">
|
||||||
|
|
||||||
<form action="/allow_nsfw" method="post">
|
<form action="/allow_nsfw" method="post">
|
||||||
<input autocomplete="off" type="hidden" name="redir" value="{{request.path}}">
|
<input type="hidden" name="redir" value="{{request.path}}">
|
||||||
<input autocomplete="off" type="submit" class="btn btn-danger mr-2" value="Yes, I am +18">
|
<input autocomplete="off" type="submit" class="btn btn-danger mr-2" value="Yes, I am +18">
|
||||||
</form>
|
</form>
|
||||||
<div><a href="/" class="btn btn-secondary">No</a></div>
|
<div><a href="/" class="btn btn-secondary">No</a></div>
|
||||||
|
|
|
@ -56,9 +56,13 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</button>
|
</button>
|
||||||
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton" x-placement="bottom-start" style="position: absolute; will-change: transform; top: 0px; left: 0px; transform: translate3d(0px, 31px, 0px);min-width:100%">
|
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton" x-placement="bottom-start" style="position: absolute; will-change: transform; top: 0px; left: 0px; transform: translate3d(0px, 31px, 0px);min-width:100%">
|
||||||
{% if v.subs != 1 %}<a class="dropdown-item text-center" href="/sub_toggle/1"><i class="fas fa-user-group mr-3"></i>Include subscribed holes</a>{% endif %}
|
<form action="/sub_toggle" method="post">
|
||||||
{% if v.subs != 2 %}<a class="dropdown-item text-center" href="/sub_toggle/2"><i class="fas fa-user-group mr-3"></i>Include all holes</a>{% endif %}
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
||||||
{% if v.subs != 3 %}<a class="dropdown-item text-center" href="/sub_toggle/3"><i class="fas fa-user-group mr-3"></i>View holes only</a>{% endif %}
|
|
||||||
|
{% if v.subs != 1 %}<button class="dropdown-item text-center" type="submit" name="mode" value="1"><i class="fas fa-user-group mr-3"></i>Include subscribed holes</button>{% endif %}
|
||||||
|
{% if v.subs != 2 %}<button class="dropdown-item text-center" type="submit" name="mode" value="2"><i class="fas fa-user-group mr-3"></i>Include all holes</button>{% endif %}
|
||||||
|
{% if v.subs != 3 %}<button class="dropdown-item text-center" type="submit" name="mode" value="3"><i class="fas fa-user-group mr-3"></i>View holes only</button>{% endif %}
|
||||||
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -90,9 +94,13 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</button>
|
</button>
|
||||||
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton" x-placement="bottom-start" style="position: absolute; will-change: transform; top: 0px; left: 0px; transform: translate3d(0px, 31px, 0px);">
|
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton" x-placement="bottom-start" style="position: absolute; will-change: transform; top: 0px; left: 0px; transform: translate3d(0px, 31px, 0px);">
|
||||||
{% if v.subs != 1 %}<a class="dropdown-item" href="/sub_toggle/1"><i class="fas fa-user-group mr-2"></i>Include subscribed holes</a>{% endif %}
|
<form action="/sub_toggle" method="post">
|
||||||
{% if v.subs != 2 %}<a class="dropdown-item" href="/sub_toggle/2"><i class="fas fa-user-group mr-2"></i>Include all holes</a>{% endif %}
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
||||||
{% if v.subs != 3 %}<a class="dropdown-item" href="/sub_toggle/3"><i class="fas fa-user-group mr-2"></i>View holes only</a>{% endif %}
|
|
||||||
|
{% if v.subs != 1 %}<button class="dropdown-item" type="submit" name="mode" value="1"><i class="fas fa-user-group mr-2"></i>Include subscribed holes</button>{% endif %}
|
||||||
|
{% if v.subs != 2 %}<button class="dropdown-item" type="submit" name="mode" value="2"><i class="fas fa-user-group mr-2"></i>Include all holes</button>{% endif %}
|
||||||
|
{% if v.subs != 3 %}<button class="dropdown-item" type="submit" name="mode" value="3"><i class="fas fa-user-group mr-2"></i>View holes only</button>{% endif %}
|
||||||
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
@ -75,7 +75,7 @@
|
||||||
|
|
||||||
<input autocomplete="off" class="form-control" id="username" aria-describedby="usernameHelp"
|
<input autocomplete="off" class="form-control" id="username" aria-describedby="usernameHelp"
|
||||||
type="text" name="username" required="">
|
type="text" name="username" required="">
|
||||||
<input autocomplete="off" type="hidden" name="redirect" value="{{redirect}}">
|
<input type="hidden" name="redirect" value="{{redirect}}">
|
||||||
|
|
||||||
<label for="password" class="mt-3">Password</label>
|
<label for="password" class="mt-3">Password</label>
|
||||||
|
|
||||||
|
|
|
@ -62,11 +62,11 @@
|
||||||
|
|
||||||
<form action="/login" method="post" class="mt-md-3" id="login">
|
<form action="/login" method="post" class="mt-md-3" id="login">
|
||||||
|
|
||||||
<input autocomplete="off" type="hidden" name="username" value="{{v.username}}">
|
<input type="hidden" name="username" value="{{v.username}}">
|
||||||
<input autocomplete="off" type="hidden" name="redirect" value="{{redirect}}">
|
<input type="hidden" name="redirect" value="{{redirect}}">
|
||||||
|
|
||||||
<input autocomplete="off" type="hidden" name="time" value="{{time}}">
|
<input type="hidden" name="time" value="{{time}}">
|
||||||
<input autocomplete="off" type="hidden" name="hash" value="{{hash}}">
|
<input type="hidden" name="hash" value="{{hash}}">
|
||||||
|
|
||||||
<label for="2fa_token" class="mt-3">Your verification code</label>
|
<label for="2fa_token" class="mt-3">Your verification code</label>
|
||||||
|
|
||||||
|
|
|
@ -25,12 +25,12 @@
|
||||||
|
|
||||||
<form action="/authorize" method="post" class="mt-md-3" id="login">
|
<form action="/authorize" method="post" class="mt-md-3" id="login">
|
||||||
|
|
||||||
<input autocomplete="off" type="hidden" name="formkey" value="{{v.formkey}}">
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
||||||
<input autocomplete="off" type="hidden" name="scopes" value="{{scopes_txt}}">
|
<input type="hidden" name="scopes" value="{{scopes_txt}}">
|
||||||
<input autocomplete="off" type="hidden" name="redirect_uri" value="{{redirect_uri}}">
|
<input type="hidden" name="redirect_uri" value="{{redirect_uri}}">
|
||||||
<input autocomplete="off" type="hidden" name="permanent" value="{{permanent}}">
|
<input type="hidden" name="permanent" value="{{permanent}}">
|
||||||
<input autocomplete="off" type="hidden" name="client_id" value="{{application.client_id}}">
|
<input type="hidden" name="client_id" value="{{application.client_id}}">
|
||||||
<input autocomplete="off" type="hidden" name="state" value="{{state}}">
|
<input type="hidden" name="state" value="{{state}}">
|
||||||
|
|
||||||
<input autocomplete="off" type="submit" class="btn btn-primary" id="auth_button" value="Authorize {{application.app_name}}">
|
<input autocomplete="off" type="submit" class="btn btn-primary" id="auth_button" value="Authorize {{application.app_name}}">
|
||||||
|
|
||||||
|
|
|
@ -10,9 +10,9 @@
|
||||||
|
|
||||||
<form action="/reset" method="post" class="mt-3">
|
<form action="/reset" method="post" class="mt-3">
|
||||||
|
|
||||||
<input autocomplete="off" type="hidden" name="time" value="{{time}}">
|
<input type="hidden" name="time" value="{{time}}">
|
||||||
<input autocomplete="off" type="hidden" name="user_id" value="{{v.id}}">
|
<input type="hidden" name="user_id" value="{{v.id}}">
|
||||||
<input autocomplete="off" type="hidden" name="token" value="{{token}}">
|
<input type="hidden" name="token" value="{{token}}">
|
||||||
|
|
||||||
<label for="passentry" class="mt-3">New Password</label>
|
<label for="passentry" class="mt-3">New Password</label>
|
||||||
|
|
||||||
|
|
|
@ -177,8 +177,8 @@
|
||||||
{% if mfa_secret %}
|
{% if mfa_secret %}
|
||||||
<div>
|
<div>
|
||||||
<form action="/settings/security" method="post">
|
<form action="/settings/security" method="post">
|
||||||
<input autocomplete="off" type="hidden" name="formkey" value="{{v.formkey}}">
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
||||||
<input autocomplete="off" type="hidden" name="2fa_secret" value="{{mfa_secret}}">
|
<input type="hidden" name="2fa_secret" value="{{mfa_secret}}">
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<p>
|
<p>
|
||||||
<span class="font-weight-bold">Step 1:</span> Scan this barcode (or enter the code) using a two-factor authentication app such as Google Authenticator or Authy.
|
<span class="font-weight-bold">Step 1:</span> Scan this barcode (or enter the code) using a two-factor authentication app such as Google Authenticator or Authy.
|
||||||
|
@ -206,8 +206,8 @@
|
||||||
{% else %}
|
{% else %}
|
||||||
<div>
|
<div>
|
||||||
<form action="/settings/security" method="post">
|
<form action="/settings/security" method="post">
|
||||||
<input autocomplete="off" type="hidden" name="formkey" value="{{v.formkey}}">
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
||||||
<input autocomplete="off" type="hidden" name="2fa_secret" value="{{mfa_secret}}">
|
<input type="hidden" name="2fa_secret" value="{{mfa_secret}}">
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
|
|
||||||
<div class="alert alert-warning" role="alert">
|
<div class="alert alert-warning" role="alert">
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
<label for="over18">{{app.app_name}}</label>
|
<label for="over18">{{app.app_name}}</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="body w-lg-100">
|
<div class="body w-lg-100">
|
||||||
<input autocomplete="off" type="hidden" name="formkey" value="{{v.formkey}}">
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
||||||
<label for="edit-{{app.id}}-name" class="mb-0 w-lg-25">App Name</label>
|
<label for="edit-{{app.id}}-name" class="mb-0 w-lg-25">App Name</label>
|
||||||
<input autocomplete="off" id="edit-{{app.id}}-name" class="form-control" type="text" name="name" value="{{app.app_name}}">
|
<input autocomplete="off" id="edit-{{app.id}}-name" class="form-control" type="text" name="name" value="{{app.app_name}}">
|
||||||
|
|
||||||
|
@ -65,7 +65,7 @@
|
||||||
<label for="over18">{{app.app_name}}</label>
|
<label for="over18">{{app.app_name}}</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="body w-lg-100">
|
<div class="body w-lg-100">
|
||||||
<input autocomplete="off" type="hidden" name="formkey" value="{{v.formkey}}">
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
||||||
<label for="edit-{{app.id}}-name" class="mb-0 w-lg-25">App Name</label>
|
<label for="edit-{{app.id}}-name" class="mb-0 w-lg-25">App Name</label>
|
||||||
<input autocomplete="off" id="edit-{{app.id}}-name" class="form-control" type="text" name="name" value="{{app.app_name}}">
|
<input autocomplete="off" id="edit-{{app.id}}-name" class="form-control" type="text" name="name" value="{{app.app_name}}">
|
||||||
|
|
||||||
|
@ -102,7 +102,7 @@
|
||||||
<label for="over18">{{auth.application.app_name}}</label>
|
<label for="over18">{{auth.application.app_name}}</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="body w-lg-100">
|
<div class="body w-lg-100">
|
||||||
<input autocomplete="off" type="hidden" name="formkey" value="{{v.formkey}}">
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
||||||
<label class="mb-0 w-lg-25">Description</label>
|
<label class="mb-0 w-lg-25">Description</label>
|
||||||
<textarea autocomplete="off" class="form-control" name="description" maxlength="256" readonly="readonly">{{auth.application.description}}</textarea>
|
<textarea autocomplete="off" class="form-control" name="description" maxlength="256" readonly="readonly">{{auth.application.description}}</textarea>
|
||||||
</div>
|
</div>
|
||||||
|
@ -123,7 +123,7 @@
|
||||||
<div class="settings-section rounded">
|
<div class="settings-section rounded">
|
||||||
<div class="d-lg-flex">
|
<div class="d-lg-flex">
|
||||||
<div class="body w-lg-100">
|
<div class="body w-lg-100">
|
||||||
<input autocomplete="off" type="hidden" name="formkey" value="{{v.formkey}}">
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
||||||
<label for="form-username">Username</label>
|
<label for="form-username">Username</label>
|
||||||
<input autocomplete="off" type="text" id="form-username" class="form-control" name="username" value="{{v.username}}" readonly>
|
<input autocomplete="off" type="text" id="form-username" class="form-control" name="username" value="{{v.username}}" readonly>
|
||||||
<label for="form-appname">Application Name</label>
|
<label for="form-appname">Application Name</label>
|
||||||
|
|
|
@ -103,7 +103,7 @@
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<input autocomplete="off" type="hidden" name="formkey" value="{{v.formkey}}">
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
||||||
<input autocomplete="off" type="text" name="username" placeholder="Enter username..." id="exile-username" class="form-control" maxlength=25 required>
|
<input autocomplete="off" type="text" name="username" placeholder="Enter username..." id="exile-username" class="form-control" maxlength=25 required>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
<div class="body d-lg-flex border-bottom">
|
<div class="body d-lg-flex border-bottom">
|
||||||
<div class="w-lg-100">
|
<div class="w-lg-100">
|
||||||
<form id="profile-settings" action="/settings/css" method="post">
|
<form id="profile-settings" action="/settings/css" method="post">
|
||||||
<input autocomplete="off" type="hidden" name="formkey" value="{{v.formkey}}">
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
||||||
<textarea autocomplete="off" class="form-control rounded" id="bio-text" aria-label="With textarea" placeholder="Custom CSS" rows="50" name="css" form="profile-settings" maxlength="4000">{% if v.css %}{{v.csslazy}}{% endif %}</textarea>
|
<textarea autocomplete="off" class="form-control rounded" id="bio-text" aria-label="With textarea" placeholder="Custom CSS" rows="50" name="css" form="profile-settings" maxlength="4000">{% if v.css %}{{v.csslazy}}{% endif %}</textarea>
|
||||||
<small>Limit of 4000 characters</small>
|
<small>Limit of 4000 characters</small>
|
||||||
<div class="d-flex mt-2">
|
<div class="d-flex mt-2">
|
||||||
|
|
|
@ -328,7 +328,7 @@
|
||||||
|
|
||||||
<div class="body w-lg-100">
|
<div class="body w-lg-100">
|
||||||
<form id="custom-filter" action="/settings/filters" method="post">
|
<form id="custom-filter" action="/settings/filters" method="post">
|
||||||
<input autocomplete="off" type="hidden" name="formkey" value="{{v.formkey}}">
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
||||||
<small>Hides matching posts from the frontpage and collapses matching comments.</small>
|
<small>Hides matching posts from the frontpage and collapses matching comments.</small>
|
||||||
<div class="input-group mb-2">
|
<div class="input-group mb-2">
|
||||||
<textarea autocomplete="off" class="form-control rounded" id="filters-text" aria-label="With textarea"
|
<textarea autocomplete="off" class="form-control rounded" id="filters-text" aria-label="With textarea"
|
||||||
|
|
|
@ -133,7 +133,7 @@
|
||||||
<div class="d-flex">
|
<div class="d-flex">
|
||||||
|
|
||||||
<form action="/settings/themecolor" id="themecolor-form" method="post" class="color-picker" style="line-height: 0">
|
<form action="/settings/themecolor" id="themecolor-form" method="post" class="color-picker" style="line-height: 0">
|
||||||
<input autocomplete="off" type="hidden" name="formkey" value="{{v.formkey}}">
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
||||||
|
|
||||||
{% for themecolor in COLORS %}
|
{% for themecolor in COLORS %}
|
||||||
<input autocomplete="off" type="radio" name="themecolor" id="themecolor-{{themecolor}}" value="{{themecolor}}" {% if v.themecolor == themecolor %}checked{% endif %} onclick="document.getElementById('themecolor-form').submit()">
|
<input autocomplete="off" type="radio" name="themecolor" id="themecolor-{{themecolor}}" value="{{themecolor}}" {% if v.themecolor == themecolor %}checked{% endif %} onclick="document.getElementById('themecolor-form').submit()">
|
||||||
|
@ -205,7 +205,7 @@
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<form action="/settings/images/profile" method="post" enctype="multipart/form-data">
|
<form action="/settings/images/profile" method="post" enctype="multipart/form-data">
|
||||||
<input autocomplete="off" type="hidden" name="formkey" value="{{v.formkey}}">
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
||||||
<label class="btn btn-secondary text-capitalize mr-2 mb-0">
|
<label class="btn btn-secondary text-capitalize mr-2 mb-0">
|
||||||
Update<input autocomplete="off" type="file" accept="image/*" {% if request.headers.get('cf-ipcountry')=="T1" %}disabled{% endif %} hidden name="profile" onchange="form.submit()">
|
Update<input autocomplete="off" type="file" accept="image/*" {% if request.headers.get('cf-ipcountry')=="T1" %}disabled{% endif %} hidden name="profile" onchange="form.submit()">
|
||||||
</label>
|
</label>
|
||||||
|
@ -216,7 +216,7 @@
|
||||||
{% if v.profileurl %}
|
{% if v.profileurl %}
|
||||||
<div>
|
<div>
|
||||||
<form action="/settings/delete/profile" method="post">
|
<form action="/settings/delete/profile" method="post">
|
||||||
<input autocomplete="off" type="hidden" name="formkey" value="{{v.formkey}}">
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
||||||
<button type="submit" value="Delete" class="btn btn-link fa-lg"><i class="far fa-trash-alt text-danger"></i></button>
|
<button type="submit" value="Delete" class="btn btn-link fa-lg"><i class="far fa-trash-alt text-danger"></i></button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
@ -247,7 +247,7 @@
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<form action="/settings/images/banner" method="post" enctype="multipart/form-data">
|
<form action="/settings/images/banner" method="post" enctype="multipart/form-data">
|
||||||
<input autocomplete="off" type="hidden" name="formkey" value="{{v.formkey}}">
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
||||||
<label class="btn btn-secondary text-capitalize mr-2 mb-0">
|
<label class="btn btn-secondary text-capitalize mr-2 mb-0">
|
||||||
Update<input autocomplete="off" type="file" {% if request.headers.get('cf-ipcountry')=="T1" %}disabled{% endif %} accept="image/*" hidden name="banner" onchange="form.submit()">
|
Update<input autocomplete="off" type="file" {% if request.headers.get('cf-ipcountry')=="T1" %}disabled{% endif %} accept="image/*" hidden name="banner" onchange="form.submit()">
|
||||||
</label>
|
</label>
|
||||||
|
@ -259,7 +259,7 @@
|
||||||
|
|
||||||
{% if v.bannerurl %}
|
{% if v.bannerurl %}
|
||||||
<form action="/settings/delete/banner" method="post">
|
<form action="/settings/delete/banner" method="post">
|
||||||
<input autocomplete="off" type="hidden" name="formkey" value="{{v.formkey}}">
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
||||||
<button type="submit" value="Delete" class="btn btn-link fa-lg"><i class="far fa-trash-alt text-danger"></i></button>
|
<button type="submit" value="Delete" class="btn btn-link fa-lg"><i class="far fa-trash-alt text-danger"></i></button>
|
||||||
</form>{% endif %}
|
</form>{% endif %}
|
||||||
|
|
||||||
|
@ -326,7 +326,7 @@
|
||||||
|
|
||||||
{% if v.discord_id %}
|
{% if v.discord_id %}
|
||||||
<form action="/settings/remove_discord" method="post">
|
<form action="/settings/remove_discord" method="post">
|
||||||
<input autocomplete="off" type="hidden" name="formkey" value="{{v.formkey}}">
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
||||||
<input autocomplete="off" type="submit" class="btn btn-secondary text-capitalize mr-2 mb-0 mt-2" value="Disconnect Discord">
|
<input autocomplete="off" type="submit" class="btn btn-secondary text-capitalize mr-2 mb-0 mt-2" value="Disconnect Discord">
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
@ -378,7 +378,7 @@
|
||||||
<p>Your original username will always stay reserved for you: <code>{{v.original_username}}</code></p>
|
<p>Your original username will always stay reserved for you: <code>{{v.original_username}}</code></p>
|
||||||
|
|
||||||
<form action="/settings/name_change" method="post">
|
<form action="/settings/name_change" method="post">
|
||||||
<input autocomplete="off" type="hidden" name="formkey" value="{{v.formkey}}">
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
||||||
<input autocomplete="off" type="text" name="name" class="form-control" value="{{v.username}}">
|
<input autocomplete="off" type="text" name="name" class="form-control" value="{{v.username}}">
|
||||||
<small>3-25 characters, including letters, numbers, _ , and -</small>
|
<small>3-25 characters, including letters, numbers, _ , and -</small>
|
||||||
<div class="d-flex mt-2">
|
<div class="d-flex mt-2">
|
||||||
|
@ -396,7 +396,7 @@
|
||||||
<p>Must be a youtube video link.</p>
|
<p>Must be a youtube video link.</p>
|
||||||
|
|
||||||
<form action="/settings/song_change" method="post">
|
<form action="/settings/song_change" method="post">
|
||||||
<input autocomplete="off" type="hidden" name="formkey" value="{{v.formkey}}">
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
||||||
<input autocomplete="off" type="text" name="song" class="form-control" value="{% if v.song %}https://youtu.be/{{v.song}}{% endif %}" placeholder='Enter a youtube video link here'>
|
<input autocomplete="off" type="text" name="song" class="form-control" value="{% if v.song %}https://youtu.be/{{v.song}}{% endif %}" placeholder='Enter a youtube video link here'>
|
||||||
<br><small>In some browsers, users have to click at least once anywhere in the profile page for the anthem to play.</small>
|
<br><small>In some browsers, users have to click at least once anywhere in the profile page for the anthem to play.</small>
|
||||||
<div class="d-flex mt-2">
|
<div class="d-flex mt-2">
|
||||||
|
@ -413,7 +413,7 @@
|
||||||
<div class="d-flex">
|
<div class="d-flex">
|
||||||
|
|
||||||
<form action="/settings/namecolor" id="color-form" method="post" class="color-picker" style="line-height: 0">
|
<form action="/settings/namecolor" id="color-form" method="post" class="color-picker" style="line-height: 0">
|
||||||
<input autocomplete="off" type="hidden" name="formkey" value="{{v.formkey}}">
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
||||||
|
|
||||||
{% for color in COLORS %}
|
{% for color in COLORS %}
|
||||||
<input autocomplete="off" type="radio" name="color" id="color-{{color}}" value="{{color}}" {% if v.namecolor == color %}checked{% endif %} onclick="document.getElementById('color-form').submit()">
|
<input autocomplete="off" type="radio" name="color" id="color-{{color}}" value="{{color}}" {% if v.namecolor == color %}checked{% endif %} onclick="document.getElementById('color-form').submit()">
|
||||||
|
@ -435,7 +435,7 @@
|
||||||
<p class="text-small mb-2">Or type a color code:</p>
|
<p class="text-small mb-2">Or type a color code:</p>
|
||||||
<div class="d-flex">
|
<div class="d-flex">
|
||||||
<form action="/settings/namecolor" id="color-code-form" method="post">
|
<form action="/settings/namecolor" id="color-code-form" method="post">
|
||||||
<input autocomplete="off" type="hidden" name="formkey" value="{{v.formkey}}">
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
||||||
<input autocomplete="off" class="form-control" type="text" name="color" id="color-code" maxlength="6" value="{% if v.namecolor %}{{v.namecolor}}{% endif %}">
|
<input autocomplete="off" class="form-control" type="text" name="color" id="color-code" maxlength="6" value="{% if v.namecolor %}{{v.namecolor}}{% endif %}">
|
||||||
<label class="btn btn-secondary text-capitalize mr-2 mt-2 mb-0">Update<input autocomplete="off" type="text" for="color-code" onclick="form.submit()" hidden=""></label>
|
<label class="btn btn-secondary text-capitalize mr-2 mt-2 mb-0">Update<input autocomplete="off" type="text" for="color-code" onclick="form.submit()" hidden=""></label>
|
||||||
</form>
|
</form>
|
||||||
|
@ -449,7 +449,7 @@
|
||||||
<div class="w-lg-100">
|
<div class="w-lg-100">
|
||||||
|
|
||||||
<form id="profile-settings" action="/settings/title_change" method="post">
|
<form id="profile-settings" action="/settings/title_change" method="post">
|
||||||
<input autocomplete="off" type="hidden" name="formkey" value="{{v.formkey}}">
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
||||||
<input maxlength=100 {% if v.flairchanged %}disabled{% endif %} autocomplete="off" id="customtitlebody" type="text" name="title" class="form-control" placeholder='Enter a flair here' value="{% if v.flairchanged %}Your flair has been locked until {{ti}}{% elif v.customtitleplain %}{{v.customtitleplain}}{% endif %}">
|
<input maxlength=100 {% if v.flairchanged %}disabled{% endif %} autocomplete="off" id="customtitlebody" type="text" name="title" class="form-control" placeholder='Enter a flair here' value="{% if v.flairchanged %}Your flair has been locked until {{ti}}{% elif v.customtitleplain %}{{v.customtitleplain}}{% endif %}">
|
||||||
<div class="d-flex mt-2">
|
<div class="d-flex mt-2">
|
||||||
<a class="format" role="button"><i class="btn btn-secondary format d-inline-block m-0 fas fa-smile-beam" onclick="loadEmojis('customtitlebody')" aria-hidden="true" data-bs-toggle="modal" data-bs-target="#emojiModal" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Add Emoji"></i></a>
|
<a class="format" role="button"><i class="btn btn-secondary format d-inline-block m-0 fas fa-smile-beam" onclick="loadEmojis('customtitlebody')" aria-hidden="true" data-bs-toggle="modal" data-bs-target="#emojiModal" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Add Emoji"></i></a>
|
||||||
|
@ -469,7 +469,7 @@
|
||||||
<div class="d-flex">
|
<div class="d-flex">
|
||||||
|
|
||||||
<form action="/settings/titlecolor" id="titlecolor-form" method="post" class="color-picker" style="line-height: 0">
|
<form action="/settings/titlecolor" id="titlecolor-form" method="post" class="color-picker" style="line-height: 0">
|
||||||
<input autocomplete="off" type="hidden" name="formkey" value="{{v.formkey}}">
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
||||||
|
|
||||||
{% for titlecolor in COLORS %}
|
{% for titlecolor in COLORS %}
|
||||||
<input autocomplete="off" type="radio" name="titlecolor" id="titlecolor-{{titlecolor}}" value="{{titlecolor}}" {% if v.titlecolor == titlecolor %}checked{% endif %} onclick="document.getElementById('titlecolor-form').submit()">
|
<input autocomplete="off" type="radio" name="titlecolor" id="titlecolor-{{titlecolor}}" value="{{titlecolor}}" {% if v.titlecolor == titlecolor %}checked{% endif %} onclick="document.getElementById('titlecolor-form').submit()">
|
||||||
|
@ -493,7 +493,7 @@
|
||||||
<p class="text-small mb-2">Or type a color code:</p>
|
<p class="text-small mb-2">Or type a color code:</p>
|
||||||
<div class="d-flex">
|
<div class="d-flex">
|
||||||
<form action="/settings/titlecolor" id="color-code-form" method="post">
|
<form action="/settings/titlecolor" id="color-code-form" method="post">
|
||||||
<input autocomplete="off" type="hidden" name="formkey" value="{{v.formkey}}">
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
||||||
<input autocomplete="off" class="form-control" type="text" name="titlecolor" id="color-code" maxlength="6" value="{% if v.titlecolor %}{{v.titlecolor}}{% endif %}">
|
<input autocomplete="off" class="form-control" type="text" name="titlecolor" id="color-code" maxlength="6" value="{% if v.titlecolor %}{{v.titlecolor}}{% endif %}">
|
||||||
<label class="btn btn-secondary text-capitalize mr-2 mt-2 mb-0">Update<input autocomplete="off" type="text" for="color-code" onclick="form.submit()" hidden=""></label>
|
<label class="btn btn-secondary text-capitalize mr-2 mt-2 mb-0">Update<input autocomplete="off" type="text" for="color-code" onclick="form.submit()" hidden=""></label>
|
||||||
</form>
|
</form>
|
||||||
|
@ -514,7 +514,7 @@
|
||||||
<div class="d-flex">
|
<div class="d-flex">
|
||||||
|
|
||||||
<form action="/settings/verifiedcolor" id="verifiedcolor-form" method="post" class="color-picker" style="line-height: 0">
|
<form action="/settings/verifiedcolor" id="verifiedcolor-form" method="post" class="color-picker" style="line-height: 0">
|
||||||
<input autocomplete="off" type="hidden" name="formkey" value="{{v.formkey}}">
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
||||||
|
|
||||||
{% for verifiedcolor in COLORS %}
|
{% for verifiedcolor in COLORS %}
|
||||||
<input autocomplete="off" type="radio" name="verifiedcolor" id="verifiedcolor-{{verifiedcolor}}" value="{{verifiedcolor}}" {% if v.verifiedcolor == verifiedcolor %}checked{% endif %} onclick="document.getElementById('verifiedcolor-form').submit()">
|
<input autocomplete="off" type="radio" name="verifiedcolor" id="verifiedcolor-{{verifiedcolor}}" value="{{verifiedcolor}}" {% if v.verifiedcolor == verifiedcolor %}checked{% endif %} onclick="document.getElementById('verifiedcolor-form').submit()">
|
||||||
|
@ -536,7 +536,7 @@
|
||||||
<p class="text-small mb-2">Or type a color code:</p>
|
<p class="text-small mb-2">Or type a color code:</p>
|
||||||
<div class="d-flex">
|
<div class="d-flex">
|
||||||
<form action="/settings/verifiedcolor" id="color-code-form" method="post">
|
<form action="/settings/verifiedcolor" id="color-code-form" method="post">
|
||||||
<input autocomplete="off" type="hidden" name="formkey" value="{{v.formkey}}">
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
||||||
<input autocomplete="off" class="form-control" type="text" name="verifiedcolor" id="color-code" maxlength="6" value="{% if v.verifiedcolor %}{{v.verifiedcolor}}{% endif %}">
|
<input autocomplete="off" class="form-control" type="text" name="verifiedcolor" id="color-code" maxlength="6" value="{% if v.verifiedcolor %}{{v.verifiedcolor}}{% endif %}">
|
||||||
<label class="btn btn-secondary text-capitalize mr-2 mt-2 mb-0">Update<input autocomplete="off" type="text" for="color-code" onclick="form.submit()" hidden=""></label>
|
<label class="btn btn-secondary text-capitalize mr-2 mt-2 mb-0">Update<input autocomplete="off" type="text" for="color-code" onclick="form.submit()" hidden=""></label>
|
||||||
</form>
|
</form>
|
||||||
|
@ -553,7 +553,7 @@
|
||||||
|
|
||||||
<div class="w-lg-100">
|
<div class="w-lg-100">
|
||||||
<form id="profile-bio" action="/settings/profile" method="post" enctype="multipart/form-data">
|
<form id="profile-bio" action="/settings/profile" method="post" enctype="multipart/form-data">
|
||||||
<input autocomplete="off" type="hidden" name="formkey" value="{{v.formkey}}">
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
||||||
<div class="input-group mb-2">
|
<div class="input-group mb-2">
|
||||||
<textarea autocomplete="off" id="bio-text" class="form-control rounded" aria-label="With textarea" placeholder="Tell the community a bit about yourself." rows="3" name="bio" form="profile-bio" maxlength="1500">{% if v.bio %}{{v.bio}}{% endif %}</textarea>
|
<textarea autocomplete="off" id="bio-text" class="form-control rounded" aria-label="With textarea" placeholder="Tell the community a bit about yourself." rows="3" name="bio" form="profile-bio" maxlength="1500">{% if v.bio %}{{v.bio}}{% endif %}</textarea>
|
||||||
</div>
|
</div>
|
||||||
|
@ -590,7 +590,7 @@
|
||||||
|
|
||||||
<div class="w-lg-100">
|
<div class="w-lg-100">
|
||||||
<form id="profile-friends" action="/settings/profile" method="post" enctype="multipart/form-data">
|
<form id="profile-friends" action="/settings/profile" method="post" enctype="multipart/form-data">
|
||||||
<input autocomplete="off" type="hidden" name="formkey" value="{{v.formkey}}">
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
||||||
<div class="input-group mb-2">
|
<div class="input-group mb-2">
|
||||||
<textarea autocomplete="off" id="friends-text" class="form-control rounded" aria-label="With textarea" placeholder="Enter your friends on the site..." rows="3" name="friends" form="profile-friends" maxlength="1500">{% if v.friends %}{{v.friends}}{% endif %}</textarea>
|
<textarea autocomplete="off" id="friends-text" class="form-control rounded" aria-label="With textarea" placeholder="Enter your friends on the site..." rows="3" name="friends" form="profile-friends" maxlength="1500">{% if v.friends %}{{v.friends}}{% endif %}</textarea>
|
||||||
</div>
|
</div>
|
||||||
|
@ -611,7 +611,7 @@
|
||||||
|
|
||||||
<div class="w-lg-100">
|
<div class="w-lg-100">
|
||||||
<form id="profile-enemies" action="/settings/profile" method="post" enctype="multipart/form-data">
|
<form id="profile-enemies" action="/settings/profile" method="post" enctype="multipart/form-data">
|
||||||
<input autocomplete="off" type="hidden" name="formkey" value="{{v.formkey}}">
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
||||||
<div class="input-group mb-2">
|
<div class="input-group mb-2">
|
||||||
<textarea autocomplete="off" id="enemies-text" class="form-control rounded" aria-label="With textarea" placeholder="Enter your enemies on the site..." rows="3" name="enemies" form="profile-enemies" maxlength="1500">{% if v.enemies %}{{v.enemies}}{% endif %}</textarea>
|
<textarea autocomplete="off" id="enemies-text" class="form-control rounded" aria-label="With textarea" placeholder="Enter your enemies on the site..." rows="3" name="enemies" form="profile-enemies" maxlength="1500">{% if v.enemies %}{{v.enemies}}{% endif %}</textarea>
|
||||||
</div>
|
</div>
|
||||||
|
@ -632,7 +632,7 @@
|
||||||
|
|
||||||
<div class="w-lg-100">
|
<div class="w-lg-100">
|
||||||
<form id="profile-sig" action="/settings/profile" method="post" enctype="multipart/form-data">
|
<form id="profile-sig" action="/settings/profile" method="post" enctype="multipart/form-data">
|
||||||
<input autocomplete="off" type="hidden" name="formkey" value="{{v.formkey}}">
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
||||||
<div class="input-group mb-2">
|
<div class="input-group mb-2">
|
||||||
<textarea autocomplete="off" id="sig-text" class="form-control rounded" aria-label="With textarea" placeholder="Enter a signature..." rows="3" name="sig" form="profile-sig" maxlength="200">{% if v.sig %}{{v.sig}}{% endif %}</textarea>
|
<textarea autocomplete="off" id="sig-text" class="form-control rounded" aria-label="With textarea" placeholder="Enter a signature..." rows="3" name="sig" form="profile-sig" maxlength="200">{% if v.sig %}{{v.sig}}{% endif %}</textarea>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
<div class="body d-lg-flex border-bottom">
|
<div class="body d-lg-flex border-bottom">
|
||||||
<div class="w-lg-100">
|
<div class="w-lg-100">
|
||||||
<form id="profile-settings" action="/settings/profilecss" method="post">
|
<form id="profile-settings" action="/settings/profilecss" method="post">
|
||||||
<input autocomplete="off" type="hidden" name="formkey" value="{{v.formkey}}">
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
||||||
<textarea autocomplete="off" class="form-control rounded" id="bio-text" aria-label="With textarea" placeholder="Custom profile css" rows="50" name="profilecss" form="profile-settings" maxlength="4000">{% if v.profilecss %}{{v.profilecss}}{% endif %}</textarea>
|
<textarea autocomplete="off" class="form-control rounded" id="bio-text" aria-label="With textarea" placeholder="Custom profile css" rows="50" name="profilecss" form="profile-settings" maxlength="4000">{% if v.profilecss %}{{v.profilecss}}{% endif %}</textarea>
|
||||||
<small>Limit of 4000 characters</small>
|
<small>Limit of 4000 characters</small>
|
||||||
<div class="d-flex mt-2">
|
<div class="d-flex mt-2">
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
<p class="text-small text-muted">Change the email address used to sign in to your account.</p>
|
<p class="text-small text-muted">Change the email address used to sign in to your account.</p>
|
||||||
<div class="settings-section rounded">
|
<div class="settings-section rounded">
|
||||||
<form action="/settings/security" method="post">
|
<form action="/settings/security" method="post">
|
||||||
<input autocomplete="off" type="hidden" name="formkey" value="{{v.formkey}}">
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
||||||
<div class="body">
|
<div class="body">
|
||||||
<div class="d-lg-flex">
|
<div class="d-lg-flex">
|
||||||
<label for="new-email" class="w-lg-25">Email</label>
|
<label for="new-email" class="w-lg-25">Email</label>
|
||||||
|
@ -121,8 +121,8 @@
|
||||||
|
|
||||||
<div class="footer">
|
<div class="footer">
|
||||||
|
|
||||||
<input autocomplete="off" type="hidden" name="formkey" value="{{v.formkey}}">
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
||||||
<input autocomplete="off" type="hidden" name="now" value="1563891643">
|
<input type="hidden" name="now" value="1563891643">
|
||||||
|
|
||||||
<div class="d-flex">
|
<div class="d-flex">
|
||||||
|
|
||||||
|
@ -172,7 +172,7 @@
|
||||||
<div class="settings-section rounded">
|
<div class="settings-section rounded">
|
||||||
|
|
||||||
<form action="/settings/log_out_all_others" method="post">
|
<form action="/settings/log_out_all_others" method="post">
|
||||||
<input autocomplete="off" type="hidden" name="formkey" value="{{v.formkey}}">
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
||||||
|
|
||||||
<div class="body">
|
<div class="body">
|
||||||
|
|
||||||
|
@ -229,7 +229,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="" id="deleteFormContainer">
|
<div class="" id="deleteFormContainer">
|
||||||
<form id="deleteAccountForm" method="post" action="/settings/delete_account">
|
<form id="deleteAccountForm" method="post" action="/settings/delete_account">
|
||||||
<input autocomplete="off" type="hidden" name="formkey" value="{{v.formkey}}">
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
||||||
<div class="modal-body body">
|
<div class="modal-body body">
|
||||||
|
|
||||||
<div class="d-lg-flex">
|
<div class="d-lg-flex">
|
||||||
|
|
|
@ -73,12 +73,12 @@
|
||||||
|
|
||||||
{% if error %}<span class="text-danger">{{error}}</span><br>{% endif %}
|
{% if error %}<span class="text-danger">{{error}}</span><br>{% endif %}
|
||||||
|
|
||||||
<input autocomplete="off" type="hidden" name="formkey" value="{{formkey}}">
|
<input type="hidden" name="formkey" value="{{formkey}}">
|
||||||
<input autocomplete="off" type="hidden" name="now" value="{{now}}">
|
<input type="hidden" name="now" value="{{now}}">
|
||||||
|
|
||||||
{% if redirect %}<input autocomplete="off" type="hidden" name="redirect" value="{{redirect}}">{% endif %}
|
{% if redirect %}<input type="hidden" name="redirect" value="{{redirect}}">{% endif %}
|
||||||
{% if ref_user %}
|
{% if ref_user %}
|
||||||
<input autocomplete="off" type="hidden" name="referred_by" value="{{ref_user.id}}">{% endif %}
|
<input type="hidden" name="referred_by" value="{{ref_user.id}}">{% endif %}
|
||||||
|
|
||||||
<label for="username-register" class="mt-3">Username</label>
|
<label for="username-register" class="mt-3">Username</label>
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
<td>
|
<td>
|
||||||
{% if v.mods(sub.name) %}
|
{% if v.mods(sub.name) %}
|
||||||
<form action="/h/{{sub.name}}/unexile/{{user.id}}" method="post">
|
<form action="/h/{{sub.name}}/unexile/{{user.id}}" method="post">
|
||||||
<input autocomplete="off" type="hidden" name="formkey" value="{{v.formkey}}">
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
||||||
<input class="btn btn-primary" style="margin-top:-5px" autocomplete="off" class="btn btn-primary ml-auto" type="submit" value="Unexile">
|
<input class="btn btn-primary" style="margin-top:-5px" autocomplete="off" class="btn btn-primary ml-auto" type="submit" value="Unexile">
|
||||||
</form>
|
</form>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
@ -23,8 +23,8 @@
|
||||||
<td>
|
<td>
|
||||||
{% if v.id == user.id or v.mod_date(sub.name) and v.mod_date(sub.name) < mod.created_utc %}
|
{% if v.id == user.id or v.mod_date(sub.name) and v.mod_date(sub.name) < mod.created_utc %}
|
||||||
<form action="/h/{{sub.name}}/remove_mod" method="post">
|
<form action="/h/{{sub.name}}/remove_mod" method="post">
|
||||||
<input autocomplete="off" type="hidden" name="formkey" value="{{v.formkey}}">
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
||||||
<input autocomplete="off" type="hidden" name="uid" value="{{user.id}}">
|
<input type="hidden" name="uid" value="{{user.id}}">
|
||||||
<input class="btn btn-primary" style="margin-top:-5px" autocomplete="off" class="btn btn-primary ml-auto" type="submit" value="{% if v.id == user.id %}Resign{% else %}Remove Mod{% endif %}">
|
<input class="btn btn-primary" style="margin-top:-5px" autocomplete="off" class="btn btn-primary ml-auto" type="submit" value="{% if v.id == user.id %}Resign{% else %}Remove Mod{% endif %}">
|
||||||
</form>
|
</form>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -36,7 +36,7 @@
|
||||||
|
|
||||||
{% if v.mods(sub.name) %}
|
{% if v.mods(sub.name) %}
|
||||||
<form action="/h/{{sub.name}}/add_mod" method="post">
|
<form action="/h/{{sub.name}}/add_mod" method="post">
|
||||||
<input autocomplete="off" type="hidden" name="formkey" value="{{v.formkey}}">
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
||||||
<input class="form-control" style="display:inline;width:250px" autocomplete="off" type="text" name="user" class="form-control" placeholder="Enter username..">
|
<input class="form-control" style="display:inline;width:250px" autocomplete="off" type="text" name="user" class="form-control" placeholder="Enter username..">
|
||||||
<input class="btn btn-primary" style="margin-top:-5px" autocomplete="off" class="btn btn-primary ml-auto" type="submit" value="Add Mod">
|
<input class="btn btn-primary" style="margin-top:-5px" autocomplete="off" class="btn btn-primary ml-auto" type="submit" value="Add Mod">
|
||||||
</form>
|
</form>
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<form action="/h/{{sub.name}}/sidebar_image" method="post" enctype="multipart/form-data">
|
<form action="/h/{{sub.name}}/sidebar_image" method="post" enctype="multipart/form-data">
|
||||||
<input autocomplete="off" type="hidden" name="formkey" value="{{v.formkey}}">
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
||||||
<label class="btn btn-secondary text-capitalize mr-2 mb-0">
|
<label class="btn btn-secondary text-capitalize mr-2 mb-0">
|
||||||
Update<input autocomplete="off" type="file" accept="image/*" {% if request.headers.get('cf-ipcountry')=="T1" %}disabled{% endif %} hidden name="sidebar" onchange="form.submit()">
|
Update<input autocomplete="off" type="file" accept="image/*" {% if request.headers.get('cf-ipcountry')=="T1" %}disabled{% endif %} hidden name="sidebar" onchange="form.submit()">
|
||||||
</label>
|
</label>
|
||||||
|
@ -68,7 +68,7 @@
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<form action="/h/{{sub.name}}/banner" method="post" enctype="multipart/form-data">
|
<form action="/h/{{sub.name}}/banner" method="post" enctype="multipart/form-data">
|
||||||
<input autocomplete="off" type="hidden" name="formkey" value="{{v.formkey}}">
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
||||||
<label class="btn btn-secondary text-capitalize mr-2 mb-0">
|
<label class="btn btn-secondary text-capitalize mr-2 mb-0">
|
||||||
Update<input autocomplete="off" type="file" {% if request.headers.get('cf-ipcountry')=="T1" %}disabled{% endif %} accept="image/*" hidden name="banner" onchange="form.submit()">
|
Update<input autocomplete="off" type="file" {% if request.headers.get('cf-ipcountry')=="T1" %}disabled{% endif %} accept="image/*" hidden name="banner" onchange="form.submit()">
|
||||||
</label>
|
</label>
|
||||||
|
@ -98,7 +98,7 @@
|
||||||
<div class="body d-lg-flex">
|
<div class="body d-lg-flex">
|
||||||
<div class="w-lg-100">
|
<div class="w-lg-100">
|
||||||
<form id="sidebar" action="/h/{{sub.name}}/sidebar" method="post">
|
<form id="sidebar" action="/h/{{sub.name}}/sidebar" method="post">
|
||||||
<input autocomplete="off" type="hidden" name="formkey" value="{{v.formkey}}">
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
||||||
<textarea autocomplete="off" maxlength="500" class="form-control rounded" id="bio-text" aria-label="With textarea" placeholder="Enter sidebar here..." rows="10" name="sidebar" form="sidebar">{% if sub.sidebar %}{{sub.sidebar}}{% endif %}</textarea>
|
<textarea autocomplete="off" maxlength="500" class="form-control rounded" id="bio-text" aria-label="With textarea" placeholder="Enter sidebar here..." rows="10" name="sidebar" form="sidebar">{% if sub.sidebar %}{{sub.sidebar}}{% endif %}</textarea>
|
||||||
|
|
||||||
<div class="d-flex mt-2">
|
<div class="d-flex mt-2">
|
||||||
|
@ -123,7 +123,7 @@
|
||||||
<div class="body d-lg-flex">
|
<div class="body d-lg-flex">
|
||||||
<div class="w-lg-100">
|
<div class="w-lg-100">
|
||||||
<form id="css" action="/h/{{sub.name}}/css" method="post">
|
<form id="css" action="/h/{{sub.name}}/css" method="post">
|
||||||
<input autocomplete="off" type="hidden" name="formkey" value="{{v.formkey}}">
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
||||||
<textarea autocomplete="off" maxlength="4000" class="form-control rounded" id="bio-text" aria-label="With textarea" placeholder="Enter css here..." rows="10" name="css" form="css">{% if sub.css %}{{sub.css}}{% endif %}</textarea>
|
<textarea autocomplete="off" maxlength="4000" class="form-control rounded" id="bio-text" aria-label="With textarea" placeholder="Enter css here..." rows="10" name="css" form="css">{% if sub.css %}{{sub.css}}{% endif %}</textarea>
|
||||||
|
|
||||||
<div class="d-flex mt-2">
|
<div class="d-flex mt-2">
|
||||||
|
|
|
@ -737,8 +737,8 @@
|
||||||
<div id="edit-post-body-{{p.id}}" class="d-none comment-write collapsed child">
|
<div id="edit-post-body-{{p.id}}" class="d-none comment-write collapsed child">
|
||||||
<form id="post-edit-form-{{p.id}}" action="/edit_post/{{p.id}}" method="post" enctype="multipart/form-data">
|
<form id="post-edit-form-{{p.id}}" action="/edit_post/{{p.id}}" method="post" enctype="multipart/form-data">
|
||||||
<div class="d-flex flex-column">
|
<div class="d-flex flex-column">
|
||||||
<input autocomplete="off" type="hidden" name="formkey" value="{{v.formkey}}">
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
||||||
<input autocomplete="off" type="hidden" name="current_page" value="{{request.path}}">
|
<input type="hidden" name="current_page" value="{{request.path}}">
|
||||||
<textarea autocomplete="off" max-length="500" name="title" class="comment-box form-control rounded" required placeholder="title">{{p.title}}</textarea>
|
<textarea autocomplete="off" max-length="500" name="title" class="comment-box form-control rounded" required placeholder="title">{{p.title}}</textarea>
|
||||||
<textarea autocomplete="off" name="body" {% if v.longpost %}minlength="280"{% endif %} maxlength="{% if v.bird %}140{% else %}20000{% endif %}" oninput="markdown('post-edit-box-{{p.id}}', 'post-edit-{{p.id}}');charLimit('post-edit-box-{{p.id}}','charcount-post-edit')" id="post-edit-box-{{p.id}}" form="post-edit-form-{{p.id}}" class="comment-box form-control rounded" aria-label="With textarea" placeholder="Add text to your post..." rows="10" data-id="{{p.id}}">{{p.body}}</textarea>
|
<textarea autocomplete="off" name="body" {% if v.longpost %}minlength="280"{% endif %} maxlength="{% if v.bird %}140{% else %}20000{% endif %}" oninput="markdown('post-edit-box-{{p.id}}', 'post-edit-{{p.id}}');charLimit('post-edit-box-{{p.id}}','charcount-post-edit')" id="post-edit-box-{{p.id}}" form="post-edit-form-{{p.id}}" class="comment-box form-control rounded" aria-label="With textarea" placeholder="Add text to your post..." rows="10" data-id="{{p.id}}">{{p.body}}</textarea>
|
||||||
|
|
||||||
|
@ -928,8 +928,8 @@
|
||||||
|
|
||||||
<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 autocomplete="off" type="hidden" name="formkey" value="{{v.formkey}}">
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
||||||
<input autocomplete="off" 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 %}
|
{% if v %}
|
||||||
<textarea autocomplete="off" {% if not (p and p.id in ADMIGGERS) %}{% if v.longpost %}minlength="280"{% elif v.bird %}maxlength="140"{% endif %}{% endif %} 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 autocomplete="off" {% if not (p and p.id in ADMIGGERS) %}{% if v.longpost %}minlength="280"{% elif v.bird %}maxlength="140"{% endif %}{% endif %} 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>
|
||||||
|
|
|
@ -77,7 +77,7 @@
|
||||||
|
|
||||||
<div class="body">
|
<div class="body">
|
||||||
|
|
||||||
<input autocomplete="off" type="hidden" name="formkey" value="{{v.formkey}}">
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
||||||
|
|
||||||
<label class='mt-4' for="title">Hole</label>
|
<label class='mt-4' for="title">Hole</label>
|
||||||
|
|
||||||
|
|
|
@ -190,7 +190,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<form class="d-none toggleable" id="message" action="/@{{u.username}}/message" onsubmit="submitFormAjax(event)">
|
<form class="d-none toggleable" id="message" action="/@{{u.username}}/message" onsubmit="submitFormAjax(event)">
|
||||||
<input autocomplete="off" type="hidden" name="formkey" value="{{v.formkey}}">
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
||||||
<pre></pre>
|
<pre></pre>
|
||||||
<textarea autocomplete="off" id="input-message" form="message" name="message" rows="3" minlength="1" maxlength="10000" class="form-control b2" oninput="markdown('input-message', 'message-preview')" required></textarea>
|
<textarea autocomplete="off" id="input-message" form="message" name="message" rows="3" minlength="1" maxlength="10000" class="form-control b2" oninput="markdown('input-message', 'message-preview')" required></textarea>
|
||||||
<pre></pre>
|
<pre></pre>
|
||||||
|
@ -234,7 +234,7 @@
|
||||||
<div class="w-lg-100">
|
<div class="w-lg-100">
|
||||||
|
|
||||||
<form action="/admin/title_change/{{u.id}}" method="post">
|
<form action="/admin/title_change/{{u.id}}" method="post">
|
||||||
<input autocomplete="off" type="hidden" name="formkey" value="{{v.formkey}}">
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
||||||
<input maxlength=100 autocomplete="off" id="customtitlebody" type="text" name="title" class="form-control" placeholder='Enter a flair here' value="{% if u.customtitleplain %}{{u.customtitleplain}}{% endif %}">
|
<input maxlength=100 autocomplete="off" id="customtitlebody" type="text" name="title" class="form-control" placeholder='Enter a flair here' value="{% if u.customtitleplain %}{{u.customtitleplain}}{% endif %}">
|
||||||
<div class="d-flex mt-2">
|
<div class="d-flex mt-2">
|
||||||
<a class="format" role="button"><i class="btn btn-secondary format d-inline-block m-0 fas fa-smile-beam" onclick="loadEmojis('customtitlebody')" aria-hidden="true" data-bs-toggle="modal" data-bs-target="#emojiModal" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Add Emoji"></i></a>
|
<a class="format" role="button"><i class="btn btn-secondary format d-inline-block m-0 fas fa-smile-beam" onclick="loadEmojis('customtitlebody')" aria-hidden="true" data-bs-toggle="modal" data-bs-target="#emojiModal" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Add Emoji"></i></a>
|
||||||
|
@ -253,14 +253,14 @@
|
||||||
<pre></pre>
|
<pre></pre>
|
||||||
{% if u.is_suspended %}
|
{% if u.is_suspended %}
|
||||||
<form action="/unban_user/{{u.id}}/" method="post" action="">
|
<form action="/unban_user/{{u.id}}/" method="post" action="">
|
||||||
<input autocomplete="off" type="hidden" name="formkey" value="{{v.formkey}}">
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
||||||
<input autocomplete="off" type="hidden" name="redir" value="true">
|
<input type="hidden" name="redir" value="true">
|
||||||
<input autocomplete="off" type="submit" class="btn btn-success" value="Unban user">
|
<input autocomplete="off" type="submit" class="btn btn-success" value="Unban user">
|
||||||
</form>
|
</form>
|
||||||
{% else %}
|
{% else %}
|
||||||
<form action="/ban_user/{{u.id}}" method="post" action="">
|
<form action="/ban_user/{{u.id}}" method="post" action="">
|
||||||
<input autocomplete="off" type="hidden" name="formkey" value="{{v.formkey}}">
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
||||||
<input autocomplete="off" type="hidden" name="redir" value="true">
|
<input type="hidden" name="redir" value="true">
|
||||||
<input autocomplete="off" style="font-size:11px" type="text" class="form-control" name="reason" placeholder="Ban Reason" oninput="document.getElementById('user-ban-submit').disabled=false">
|
<input autocomplete="off" style="font-size:11px" type="text" class="form-control" name="reason" placeholder="Ban Reason" oninput="document.getElementById('user-ban-submit').disabled=false">
|
||||||
<input autocomplete="off" style="font-size:11px" type="number" step="any" class="form-control" name="days" placeholder="Days (blank = permanent)">
|
<input autocomplete="off" style="font-size:11px" type="number" step="any" class="form-control" name="days" placeholder="Days (blank = permanent)">
|
||||||
<div class="custom-control custom-checkbox">
|
<div class="custom-control custom-checkbox">
|
||||||
|
@ -273,7 +273,7 @@
|
||||||
<pre></pre>
|
<pre></pre>
|
||||||
|
|
||||||
<form id="agendaposter1" class="{% if u.agendaposter %}d-none{% endif %}" action="/agendaposter/{{u.id}}" method="post">
|
<form id="agendaposter1" class="{% if u.agendaposter %}d-none{% endif %}" action="/agendaposter/{{u.id}}" method="post">
|
||||||
<input autocomplete="off" type="hidden" name="formkey", value="{{v.formkey}}">
|
<input type="hidden" name="formkey", value="{{v.formkey}}">
|
||||||
<input autocomplete="off" type="number" step="any" name="days" class="form-control" placeholder="Days (0 or blank = permanent)">
|
<input autocomplete="off" type="number" step="any" name="days" class="form-control" placeholder="Days (0 or blank = permanent)">
|
||||||
<input autocomplete="off" type="submit" class="btn btn-danger" value="Lock Chud Theme">
|
<input autocomplete="off" type="submit" class="btn btn-danger" value="Lock Chud Theme">
|
||||||
</form>
|
</form>
|
||||||
|
@ -295,14 +295,14 @@
|
||||||
|
|
||||||
<pre></pre>
|
<pre></pre>
|
||||||
<form action="/admin/unnuke_user" method="post">
|
<form action="/admin/unnuke_user" method="post">
|
||||||
<input autocomplete="off" type="hidden" name="formkey", value="{{v.formkey}}">
|
<input type="hidden" name="formkey", value="{{v.formkey}}">
|
||||||
<input autocomplete="off" type="hidden" name="user" value="{{u.username}}">
|
<input type="hidden" name="user" value="{{u.username}}">
|
||||||
<input autocomplete="off" type="submit" class="btn btn-success" value="Approve User's Content">
|
<input autocomplete="off" type="submit" class="btn btn-success" value="Approve User's Content">
|
||||||
</form>
|
</form>
|
||||||
<pre></pre>
|
<pre></pre>
|
||||||
<form action="/admin/nuke_user" method="post">
|
<form action="/admin/nuke_user" method="post">
|
||||||
<input autocomplete="off" type="hidden" name="formkey", value="{{v.formkey}}">
|
<input type="hidden" name="formkey", value="{{v.formkey}}">
|
||||||
<input autocomplete="off" type="hidden" name="user" value="{{u.username}}">
|
<input type="hidden" name="user" value="{{u.username}}">
|
||||||
<input autocomplete="off" type="submit" class="btn btn-danger" value="Remove User's Content">
|
<input autocomplete="off" type="submit" class="btn btn-danger" value="Remove User's Content">
|
||||||
</form>
|
</form>
|
||||||
<pre></pre>
|
<pre></pre>
|
||||||
|
@ -501,7 +501,7 @@
|
||||||
|
|
||||||
<form class="d-none toggleable" id='message-mobile' action="/@{{u.username}}/message" onsubmit="submitFormAjax(event)">
|
<form class="d-none toggleable" id='message-mobile' action="/@{{u.username}}/message" onsubmit="submitFormAjax(event)">
|
||||||
<pre></pre>
|
<pre></pre>
|
||||||
<input autocomplete="off" type="hidden" name="formkey" value="{{v.formkey}}">
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
||||||
<textarea autocomplete="off" id="input-message-mobile" form="message-mobile" name="message" rows="3" minlength="1" maxlength="10000" class="form-control" oninput="markdown('input-message-mobile', 'message-preview-mobile')" required></textarea>
|
<textarea autocomplete="off" id="input-message-mobile" form="message-mobile" name="message" rows="3" minlength="1" maxlength="10000" class="form-control" oninput="markdown('input-message-mobile', 'message-preview-mobile')" required></textarea>
|
||||||
<pre></pre>
|
<pre></pre>
|
||||||
<pre class="btn btn-secondary format d-inline-block m-0 fas fa-bold" aria-hidden="true" onclick="makeBold('input-message-mobile')" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Bold"></pre>
|
<pre class="btn btn-secondary format d-inline-block m-0 fas fa-bold" aria-hidden="true" onclick="makeBold('input-message-mobile')" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Bold"></pre>
|
||||||
|
@ -540,7 +540,7 @@
|
||||||
<div class="w-lg-100">
|
<div class="w-lg-100">
|
||||||
|
|
||||||
<form action="/admin/title_change/{{u.id}}" method="post">
|
<form action="/admin/title_change/{{u.id}}" method="post">
|
||||||
<input autocomplete="off" type="hidden" name="formkey" value="{{v.formkey}}">
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
||||||
<input maxlength=100 autocomplete="off" id="customtitlebody-mobile" type="text" name="title" class="form-control" placeholder='Enter a flair here' value="{% if u.customtitleplain %}{{u.customtitleplain}}{% endif %}">
|
<input maxlength=100 autocomplete="off" id="customtitlebody-mobile" type="text" name="title" class="form-control" placeholder='Enter a flair here' value="{% if u.customtitleplain %}{{u.customtitleplain}}{% endif %}">
|
||||||
<div class="d-flex mt-2">
|
<div class="d-flex mt-2">
|
||||||
<a class="format" role="button"><i class="btn btn-secondary format d-inline-block m-0 fas fa-smile-beam" onclick="loadEmojis('customtitlebody-mobile')" aria-hidden="true" data-bs-toggle="modal" data-bs-target="#emojiModal" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Add Emoji"></i></a>
|
<a class="format" role="button"><i class="btn btn-secondary format d-inline-block m-0 fas fa-smile-beam" onclick="loadEmojis('customtitlebody-mobile')" aria-hidden="true" data-bs-toggle="modal" data-bs-target="#emojiModal" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Add Emoji"></i></a>
|
||||||
|
@ -559,14 +559,14 @@
|
||||||
<pre></pre>
|
<pre></pre>
|
||||||
{% if u.is_suspended %}
|
{% if u.is_suspended %}
|
||||||
<form action="/unban_user/{{u.id}}" method="post">
|
<form action="/unban_user/{{u.id}}" method="post">
|
||||||
<input autocomplete="off" type="hidden" name="formkey", value="{{v.formkey}}">
|
<input type="hidden" name="formkey", value="{{v.formkey}}">
|
||||||
<input autocomplete="off" type="hidden" name="redir" value="true">
|
<input type="hidden" name="redir" value="true">
|
||||||
<input autocomplete="off" type="submit" class="btn btn-success" value="Unban user">
|
<input autocomplete="off" type="submit" class="btn btn-success" value="Unban user">
|
||||||
</form>
|
</form>
|
||||||
{% else %}
|
{% else %}
|
||||||
<form action="/ban_user/{{u.id}}/" method="post">
|
<form action="/ban_user/{{u.id}}/" method="post">
|
||||||
<input autocomplete="off" type="hidden" name="formkey" value="{{v.formkey}}">
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
||||||
<input autocomplete="off" type="hidden" name="redir" value="true">
|
<input type="hidden" name="redir" value="true">
|
||||||
<input autocomplete="off" style="font-size:11px" type="text" class="form-control" name="reason" placeholder="Ban Reason" oninput="document.getElementById('user-ban-submit2').disabled=false">
|
<input autocomplete="off" style="font-size:11px" type="text" class="form-control" name="reason" placeholder="Ban Reason" oninput="document.getElementById('user-ban-submit2').disabled=false">
|
||||||
<input autocomplete="off" style="font-size:11px" type="number" step="any" class="form-control" name="days" placeholder="Days (blank = permanent)">
|
<input autocomplete="off" style="font-size:11px" type="number" step="any" class="form-control" name="days" placeholder="Days (blank = permanent)">
|
||||||
<br >
|
<br >
|
||||||
|
@ -581,7 +581,7 @@
|
||||||
<pre></pre>
|
<pre></pre>
|
||||||
|
|
||||||
<form id="agendaposter2" class="{% if u.agendaposter %}d-none{% endif %}" action="/agendaposter/{{u.id}}" method="post">
|
<form id="agendaposter2" class="{% if u.agendaposter %}d-none{% endif %}" action="/agendaposter/{{u.id}}" method="post">
|
||||||
<input autocomplete="off" type="hidden" name="formkey", value="{{v.formkey}}">
|
<input type="hidden" name="formkey", value="{{v.formkey}}">
|
||||||
<input autocomplete="off" type="number" step="any" name="days" class="form-control" placeholder="Days (0 or blank = permanent)">
|
<input autocomplete="off" type="number" step="any" name="days" class="form-control" placeholder="Days (0 or blank = permanent)">
|
||||||
<input autocomplete="off" type="submit" class="btn btn-danger" value="Lock Chud Theme">
|
<input autocomplete="off" type="submit" class="btn btn-danger" value="Lock Chud Theme">
|
||||||
</form>
|
</form>
|
||||||
|
@ -603,14 +603,14 @@
|
||||||
|
|
||||||
<pre></pre>
|
<pre></pre>
|
||||||
<form action="/admin/unnuke_user" method="post">
|
<form action="/admin/unnuke_user" method="post">
|
||||||
<input autocomplete="off" type="hidden" name="formkey", value="{{v.formkey}}">
|
<input type="hidden" name="formkey", value="{{v.formkey}}">
|
||||||
<input autocomplete="off" type="hidden" name="user" value="{{u.username}}">
|
<input type="hidden" name="user" value="{{u.username}}">
|
||||||
<input autocomplete="off" type="submit" class="btn btn-success" value="Approve User's Content">
|
<input autocomplete="off" type="submit" class="btn btn-success" value="Approve User's Content">
|
||||||
</form>
|
</form>
|
||||||
<pre></pre>
|
<pre></pre>
|
||||||
<form action="/admin/nuke_user" method="post">
|
<form action="/admin/nuke_user" method="post">
|
||||||
<input autocomplete="off" type="hidden" name="formkey", value="{{v.formkey}}">
|
<input type="hidden" name="formkey", value="{{v.formkey}}">
|
||||||
<input autocomplete="off" type="hidden" name="user" value="{{u.username}}">
|
<input type="hidden" name="user" value="{{u.username}}">
|
||||||
<input autocomplete="off" type="submit" class="btn btn-danger" value="Remove User's Content">
|
<input autocomplete="off" type="submit" class="btn btn-danger" value="Remove User's Content">
|
||||||
</form>
|
</form>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in New Issue