2022-02-10 20:35:16 +00:00
|
|
|
{% extends "default.html" %}
|
2022-11-21 08:52:22 +00:00
|
|
|
{% block pagetitle %}/h/{{sub}} Settings{% endblock %}
|
2022-02-10 20:35:16 +00:00
|
|
|
|
2022-12-11 23:44:34 +00:00
|
|
|
{% block content %}
|
2022-08-19 21:31:26 +00:00
|
|
|
|
2023-08-07 11:32:02 +00:00
|
|
|
<div class="title mt-5">
|
2022-08-19 21:31:26 +00:00
|
|
|
<label class="text-lg" for="stealth">Stealth Mode</label>
|
|
|
|
</div>
|
2023-08-07 11:32:02 +00:00
|
|
|
<div class="d-inline-block w-lg-100">
|
2022-08-19 21:31:26 +00:00
|
|
|
<div class="custom-control custom-switch">
|
2023-09-15 11:01:04 +00:00
|
|
|
<input autocomplete="off" type="checkbox" class="custom-control-input" id="stealth" name="stealth" {% if sub.stealth %}checked{% endif %} data-nonce="{{g.nonce}}" data-onchange="postToastSwitch(this,'/h/{{sub}}/stealth')">
|
2022-08-19 21:31:26 +00:00
|
|
|
<label class="custom-control-label" for="stealth"></label>
|
|
|
|
</div>
|
2023-08-07 11:32:02 +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-12-11 23:44:34 +00:00
|
|
|
<h5 class="mt-5">Marsey</h5>
|
2022-08-24 22:22:44 +00:00
|
|
|
<div class="settings-section rounded">
|
2023-08-07 11:32:02 +00:00
|
|
|
<img loading="lazy" alt="sub marsey picture" src="{{sub.marsey_url}}" style="max-width:100px">
|
|
|
|
<form class="d-inline-block" action="/h/{{sub}}/marsey_image" method="post" enctype="multipart/form-data">
|
|
|
|
<input 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 g.is_tor %}disabled{% endif %} hidden name="marsey" data-nonce="{{g.nonce}}" onchange_submit>
|
|
|
|
</label>
|
|
|
|
</form>
|
|
|
|
<div class="text-small text-muted mt-3">
|
|
|
|
All image files are supported. Max file size is {% if v and v.patron %}16{% else %}8{% endif %} MB.
|
2022-08-24 22:22:44 +00:00
|
|
|
</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">
|
2023-08-07 11:32:02 +00:00
|
|
|
<img class="mr-3" loading="lazy" alt="sub sidebar picture" src="{{sub.sidebar_url}}" style="max-width:min(300px,100%)">
|
|
|
|
<form class="d-inline-block mt-2" action="/h/{{sub}}/sidebar_image" method="post" enctype="multipart/form-data">
|
|
|
|
<input 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 g.is_tor %}disabled{% endif %} hidden name="sidebar" data-nonce="{{g.nonce}}" onchange_submit>
|
|
|
|
</label>
|
|
|
|
</form>
|
|
|
|
<div class="text-small text-muted mt-3">
|
|
|
|
All image files are supported. Max file size is {% if v and v.patron %}16{% else %}8{% endif %} MB.
|
2022-02-10 20:35:16 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-02-11 23:32:14 +00:00
|
|
|
|
2022-12-11 23:44:34 +00:00
|
|
|
<h5 class="mt-5">Banners</h5>
|
|
|
|
<div class="settings-section rounded sub-banner-update-section">
|
|
|
|
{% for banner in sub.banner_urls %}
|
2023-08-12 15:01:29 +00:00
|
|
|
<section id="sub-banner-update-{{loop.index - 1}}" class="mt-5 d-block sub-settings-subsection">
|
2023-08-07 11:32:02 +00:00
|
|
|
<img class="mr-3" loading="lazy" alt="/h/{{sub.name}} banner" src="{{banner}}" style="max-height:300px;max-width:100%">
|
2023-09-15 11:01:04 +00:00
|
|
|
<button class="btn btn-danger sub-banner-delete-button mt-2" id="sub-banner-delete-{{loop.index}}" data-nonce="{{g.nonce}}" data-onclick="areyousure(this)" data-areyousure="postToastReload(this, '/h/{{sub.name}}/settings/banners/delete/{{loop.index - 1}}')">Delete</button>
|
2022-12-11 23:44:34 +00:00
|
|
|
</section>
|
|
|
|
{% else %}
|
2023-08-12 15:01:29 +00:00
|
|
|
<section id="sub-banner-no-banners" class="d-block sub-settings-subsection">
|
2023-09-15 11:01:04 +00:00
|
|
|
{{macros.ghost_box("No banners uploaded", "", 2, "flex:1")}}
|
2022-12-11 23:44:34 +00:00
|
|
|
</section>
|
|
|
|
{% endfor %}
|
|
|
|
{% if not g.is_tor %}
|
2023-08-12 15:01:29 +00:00
|
|
|
<section id="sub-banner-upload-new" class="mt-5 sub-settings-subsection">
|
2023-08-07 11:32:02 +00:00
|
|
|
<form class="d-inline-block" action="/h/{{sub.name}}/settings/banners/" method="post" enctype="multipart/form-data">
|
|
|
|
<input hidden name="formkey" value="{{v|formkey}}">
|
2023-08-12 15:01:29 +00:00
|
|
|
<label class="btn btn-secondary text-capitalize mr-2 mb-0">
|
2023-08-07 11:32:02 +00:00
|
|
|
Upload New Banner<input autocomplete="off" type="file" accept="image/*" hidden name="banner" data-nonce="{{g.nonce}}" onchange_submit>
|
|
|
|
</label>
|
|
|
|
</form>
|
2023-09-15 11:01:04 +00:00
|
|
|
<button type="button" class="btn btn-danger sub-banner-delete-button" id="sub-banner-delete-all" data-nonce="{{g.nonce}}" data-onclick="areyousure(this)" data-areyousure="postToastReload(this, '/h/{{sub.name}}/settings/banners/delete_all')">Delete All Banners</button>
|
2023-08-07 11:32:02 +00:00
|
|
|
<div class="text-small text-muted mt-3">
|
|
|
|
All image files are supported. Max file size is {% if v and v.patron %}16{% else %}8{% endif %} MB.
|
2022-02-10 20:35:16 +00:00
|
|
|
</div>
|
2022-12-11 23:44:34 +00:00
|
|
|
</section>
|
|
|
|
{% endif %}
|
2022-02-10 20:35:16 +00:00
|
|
|
</div>
|
|
|
|
|
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">
|
2022-12-11 23:44:34 +00:00
|
|
|
<h2>Edit Sidebar</h2><br>
|
2022-02-10 20:35:16 +00:00
|
|
|
</div>
|
|
|
|
<div class="body d-lg-flex">
|
|
|
|
<div class="w-lg-100">
|
2023-08-11 21:50:23 +00:00
|
|
|
<form id="sidebar" action="/h/{{sub}}/sidebar" method="post" data-nonce="{{g.nonce}}" data-onsubmit="sendFormXHR(this)">
|
2023-01-24 05:10:16 +00:00
|
|
|
<input hidden name="formkey" value="{{v|formkey}}">
|
2022-12-25 02:10:56 +00:00
|
|
|
<textarea autocomplete="off" maxlength="10000" class="form-control rounded" id="bio-text" 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">
|
2023-03-07 00:21:08 +00:00
|
|
|
<input autocomplete="off" class="btn btn-primary ml-auto" type="submit" 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">
|
2022-12-11 23:44:34 +00:00
|
|
|
<h2>Edit CSS</h2><br>
|
2022-02-11 23:32:14 +00:00
|
|
|
</div>
|
|
|
|
<div class="body d-lg-flex">
|
|
|
|
<div class="w-lg-100">
|
2023-08-11 21:50:23 +00:00
|
|
|
<form id="css" action="/h/{{sub}}/css" method="post" data-nonce="{{g.nonce}}" data-onsubmit="sendFormXHR(this)">
|
2023-01-24 05:10:16 +00:00
|
|
|
<input hidden name="formkey" value="{{v|formkey}}">
|
2023-01-27 09:49:29 +00:00
|
|
|
<textarea autocomplete="off" maxlength="6000" class="form-control rounded" id="bio-text" placeholder="Enter css here..." rows="10" name="css" form="css">{% if css %}{{css}}{% endif %}</textarea>
|
2022-02-10 20:35:16 +00:00
|
|
|
<div class="d-flex mt-2">
|
2023-03-07 00:21:08 +00:00
|
|
|
<input autocomplete="off" class="btn btn-primary ml-auto" type="submit" 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 %}
|