2022-02-10 20:35:16 +00:00
|
|
|
{% extends "default.html" %}
|
|
|
|
|
|
|
|
{% block pagetitle %}Edit {{SITE_NAME}} sidebar{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
|
2022-05-03 19:07:15 +00:00
|
|
|
{% if error %}
|
|
|
|
<div class="alert alert-danger alert-dismissible fade show mb-3 mt-4" role="alert">
|
|
|
|
<i class="fas fa-exclamation-circle my-auto"></i>
|
|
|
|
<span>
|
|
|
|
{{error}}
|
|
|
|
</span>
|
2022-10-28 23:35:14 +00:00
|
|
|
<button type="button" class="close" data-bs-dismiss="alert" aria-label="Close">
|
2022-09-08 17:24:00 +00:00
|
|
|
<span aria-hidden="true"><i class="far fa-times"></i></span>
|
2022-05-03 19:07:15 +00:00
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
2022-02-10 20:35:16 +00:00
|
|
|
{% if msg %}
|
|
|
|
<div class="alert alert-success alert-dismissible fade show my-3" role="alert">
|
|
|
|
<i class="fas fa-check-circle my-auto" aria-hidden="true"></i>
|
|
|
|
<span>
|
|
|
|
{{msg}}
|
|
|
|
</span>
|
2022-10-28 23:35:14 +00:00
|
|
|
<button type="button" class="close" data-bs-dismiss="alert" aria-label="Close">
|
2022-09-08 17:24:00 +00:00
|
|
|
<span aria-hidden="true"><i class="far fa-times"></i></span>
|
2022-02-10 20:35:16 +00:00
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
2022-08-19 21:31:26 +00:00
|
|
|
|
|
|
|
<div class="title w-lg-25 mt-5">
|
|
|
|
<label class="text-lg" for="stealth">Stealth Mode</label>
|
|
|
|
</div>
|
|
|
|
<div class="body w-lg-100">
|
|
|
|
<div class="custom-control custom-switch">
|
2022-10-30 15:10:07 +00:00
|
|
|
<input autocomplete="off" type="checkbox" class="custom-control-input" id="stealth" name="stealth" {% if sub.stealth %}checked{% endif %} onchange="postToast(this,'/h/{{sub}}/stealth');">
|
2022-08-19 21:31:26 +00:00
|
|
|
<label class="custom-control-label" for="stealth"></label>
|
|
|
|
</div>
|
2022-09-10 06:22:59 +00:00
|
|
|
<span class="text-small text-muted">Make this hole blocked by default (users can visit it to unblock it).</span>
|
2022-08-19 21:31:26 +00:00
|
|
|
</div>
|
|
|
|
|
2022-08-24 22:22:44 +00:00
|
|
|
|
2022-10-29 00:52:11 +00:00
|
|
|
<h5 class=" mt-5">Marsey</h5>
|
2022-08-24 22:22:44 +00:00
|
|
|
|
|
|
|
<div class="settings-section rounded">
|
|
|
|
|
|
|
|
<div class="d-flex">
|
|
|
|
|
|
|
|
<div class="title w-lg-25 text-md-center">
|
|
|
|
<img loading="lazy" alt="sub marsey picture" src="{{sub.marsey_url}}" class="profile-pic-75">
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="body w-lg-100 my-auto">
|
|
|
|
|
|
|
|
<div class="d-flex">
|
|
|
|
|
|
|
|
<div>
|
2022-09-12 05:25:04 +00:00
|
|
|
<form action="/h/{{sub}}/marsey_image" method="post" enctype="multipart/form-data">
|
2022-08-24 22:22:44 +00:00
|
|
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
|
|
|
<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="marsey" onchange="form.submit()">
|
|
|
|
</label>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="text-small text-muted mt-3">JPG, PNG, GIF files are supported. Max file size is {% if v and v.patron %}16{% else %}8{% endif %} MB.</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
2022-10-29 00:52:11 +00:00
|
|
|
<h5 class=" mt-5">Sidebar Picture</h5>
|
2022-02-10 20:35:16 +00:00
|
|
|
|
|
|
|
<div class="settings-section rounded">
|
|
|
|
|
|
|
|
<div class="d-flex">
|
|
|
|
|
|
|
|
<div class="title w-lg-25 text-md-center">
|
|
|
|
<img loading="lazy" alt="sub sidebar picture" src="{{sub.sidebar_url}}" class="profile-pic-75">
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="body w-lg-100 my-auto">
|
|
|
|
|
|
|
|
<div class="d-flex">
|
|
|
|
|
|
|
|
<div>
|
2022-09-12 05:25:04 +00:00
|
|
|
<form action="/h/{{sub}}/sidebar_image" method="post" enctype="multipart/form-data">
|
2022-03-19 16:19:02 +00:00
|
|
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
2022-02-10 20:35:16 +00:00
|
|
|
<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()">
|
|
|
|
</label>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
2022-08-24 22:22:44 +00:00
|
|
|
<div class="text-small text-muted mt-3">JPG, PNG, GIF files are supported. Max file size is {% if v and v.patron %}16{% else %}8{% endif %} MB.</div>
|
2022-02-10 20:35:16 +00:00
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
2022-02-11 23:32:14 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2022-10-29 00:52:11 +00:00
|
|
|
<h5 class=" mt-5">Banner</h5>
|
2022-02-10 20:35:16 +00:00
|
|
|
|
|
|
|
<div class="settings-section rounded">
|
|
|
|
|
|
|
|
<div class="d-flex">
|
|
|
|
|
|
|
|
<div class="title w-lg-75 text-md-center">
|
2022-03-09 02:04:37 +00:00
|
|
|
<img loading="lazy" alt="/h/{[sub.name]} banner" src="{{sub.banner_url}}" class="banner-pic-135">
|
2022-02-10 20:35:16 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="body w-lg-100 my-auto">
|
|
|
|
|
|
|
|
<div class="d-flex">
|
|
|
|
|
|
|
|
<div>
|
2022-09-12 05:25:04 +00:00
|
|
|
<form action="/h/{{sub}}/banner" method="post" enctype="multipart/form-data">
|
2022-03-19 16:19:02 +00:00
|
|
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
2022-02-10 20:35:16 +00:00
|
|
|
<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()">
|
|
|
|
</label>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
2022-08-24 22:22:44 +00:00
|
|
|
<div class="text-small text-muted mt-3">JPG, PNG, GIF files are supported. Max file size is {% if v and v.patron %}16{% else %}8{% endif %} MB.</div>
|
2022-02-10 20:35:16 +00:00
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
2022-02-11 23:32:14 +00:00
|
|
|
|
|
|
|
|
2022-02-12 18:05:35 +00:00
|
|
|
<div class="row my-5 pt-5">
|
2022-02-10 20:35:16 +00:00
|
|
|
<div class="col col-md-8">
|
|
|
|
<div class="settings">
|
|
|
|
<div id="description">
|
|
|
|
<h2>Edit Sidebar</h2>
|
|
|
|
<br>
|
|
|
|
</div>
|
|
|
|
<div class="body d-lg-flex">
|
|
|
|
<div class="w-lg-100">
|
2022-09-12 05:25:04 +00:00
|
|
|
<form id="sidebar" action="/h/{{sub}}/sidebar" method="post">
|
2022-03-19 16:19:02 +00:00
|
|
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
2022-07-17 17:26:16 +00:00
|
|
|
<textarea autocomplete="off" maxlength="10000" 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>
|
2022-02-11 23:32:14 +00:00
|
|
|
|
|
|
|
<div class="d-flex mt-2">
|
2022-06-24 02:53:31 +00:00
|
|
|
<input autocomplete="off" class="btn btn-primary ml-auto" type="submit" onclick="disable(this)" value="Save">
|
2022-02-11 23:32:14 +00:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2022-02-12 18:04:42 +00:00
|
|
|
<div class="row">
|
2022-02-11 23:32:14 +00:00
|
|
|
<div class="col col-md-8">
|
|
|
|
<div class="settings">
|
|
|
|
<div id="description">
|
|
|
|
<h2>Edit CSS</h2>
|
|
|
|
<br>
|
|
|
|
</div>
|
|
|
|
<div class="body d-lg-flex">
|
|
|
|
<div class="w-lg-100">
|
2022-09-12 05:25:04 +00:00
|
|
|
<form id="css" action="/h/{{sub}}/css" method="post">
|
2022-03-19 16:19:02 +00:00
|
|
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
2022-08-12 23:07:49 +00:00
|
|
|
<textarea autocomplete="off" maxlength="6000" 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>
|
2022-02-10 20:35:16 +00:00
|
|
|
|
|
|
|
<div class="d-flex mt-2">
|
2022-06-24 02:53:31 +00:00
|
|
|
<input autocomplete="off" class="btn btn-primary ml-auto" type="submit" onclick="disable(this)" value="Save">
|
2022-02-10 20:35:16 +00:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2022-10-28 23:35:14 +00:00
|
|
|
{% endblock %}
|