2022-11-21 08:52:22 +00:00
|
|
|
{%- extends 'root.html' -%}
|
|
|
|
{% import 'settings/common.html' as common with context %}
|
|
|
|
{% block pagetitle %}Settings{% endblock %}
|
2022-11-28 17:25:01 +00:00
|
|
|
{% block pagetype %}settings{% endblock %}
|
2023-02-24 06:31:27 +00:00
|
|
|
{% block body_attributes %}class="has_header"{% endblock %}
|
2022-11-21 08:52:22 +00:00
|
|
|
{% block body %}
|
2022-05-04 23:09:46 +00:00
|
|
|
{% include "header.html" %}
|
|
|
|
<div class="container">
|
|
|
|
<div class="row justify-content-around">
|
|
|
|
<div class="col h-100">
|
2022-12-11 23:44:34 +00:00
|
|
|
{% if error %}{{macros.alert(error, true)}}{% endif %}
|
|
|
|
{% if msg %}{{macros.alert(msg, false)}}{% endif %}
|
2022-05-04 23:09:46 +00:00
|
|
|
<div class="mt-3">
|
2022-10-23 17:57:38 +00:00
|
|
|
<h1 class="d-mob-none">Settings</h1>
|
2022-11-06 06:35:49 +00:00
|
|
|
<h3 class="mt-5 d-md-none">Settings</h3>
|
2022-05-04 23:09:46 +00:00
|
|
|
</div>
|
|
|
|
<div class="flex-row bg-white box-shadow-bottom sticky d-none d-sm-flex mt-3 mb-3 mb-sm-5">
|
2022-11-06 06:35:49 +00:00
|
|
|
<nav>
|
|
|
|
<ul class="nav settings-nav">
|
|
|
|
<li class="nav-item"><a class="nav-link{% if request.path=='/settings/personal' %} active{% endif %}" href="/settings/personal">Personal</a></li>
|
2022-11-06 08:59:50 +00:00
|
|
|
<li class="nav-item"><a class="nav-link{% if request.path=='/settings/advanced' %} active{% endif %}" href="/settings/advanced">Advanced</a></li>
|
2022-11-06 06:35:49 +00:00
|
|
|
<li class="nav-item"><a class="nav-link{% if request.path=='/settings/css' %} active{% endif %}" href="/settings/css">CSS</a></li>
|
|
|
|
<li class="nav-item"><a class="nav-link{% if request.path=='/settings/security' %} active{% endif %}" href="/settings/security">Security</a></li>
|
2023-05-05 02:16:19 +00:00
|
|
|
<li class="nav-item"><a class="nav-link{% if request.path=='/settings/blocks' %} active{% endif %}" href="/settings/blocks">Blocks</a></li>
|
2023-03-16 04:07:39 +00:00
|
|
|
{% if FEATURES["BOTS"] %}
|
|
|
|
<li class="nav-item"><a class="nav-link{% if request.path=='/settings/apps' %} active{% endif %}" href="/settings/apps">Apps/Bots</a></li>
|
|
|
|
{% endif %}
|
2022-11-06 06:35:49 +00:00
|
|
|
</ul>
|
|
|
|
</nav>
|
2022-05-04 23:09:46 +00:00
|
|
|
</div>
|
|
|
|
<div class="flex-row bg-white box-shadow-bottom sticky justify-content-center d-flex d-sm-none mt-3 mb-3 mb-sm-5">
|
2022-11-06 06:35:49 +00:00
|
|
|
<nav>
|
|
|
|
<ul class="nav settings-nav">
|
|
|
|
<li class="nav-item"><a class="nav-link{% if request.path=='/settings/personal' %} active{% endif %} navsettings" href="/settings/personal"><i class="fas fa-cog text-base mr-0"></i></a></li>
|
|
|
|
<li class="nav-item"><a class="nav-link{% if request.path=='/settings/advanced' %} active{% endif %} navsettings" href="/settings/advanced"><i class="fas fa-filter text-base mr-0"></i></a></li>
|
|
|
|
<li class="nav-item"><a class="nav-link{% if request.path=='/settings/css' %} active{% endif %} navsettings" href="/settings/css"><i class="fas fa-palette text-base mr-0"></i></a></li>
|
|
|
|
<li class="nav-item"><a class="nav-link{% if request.path=='/settings/security' %} active{% endif %} navsettings" href="/settings/security"><i class="fas fa-lock-alt text-base mr-0"></i></a></li>
|
|
|
|
<li class="nav-item"><a class="nav-link{% if request.path=='/settings/apps' %} active{% endif %} navsettings" href="/settings/apps"><i class="fas fa-code text-base mr-0"></i></a></li>
|
|
|
|
</ul>
|
|
|
|
</nav>
|
2022-05-04 23:09:46 +00:00
|
|
|
</div>
|
2022-11-21 08:52:22 +00:00
|
|
|
{% block content %}{% endblock %}
|
2022-05-04 23:09:46 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-11-21 08:52:22 +00:00
|
|
|
</div>
|
2022-05-04 23:09:46 +00:00
|
|
|
{% block clipboard %}
|
2023-01-20 07:14:59 +00:00
|
|
|
<div class="toast clipboard" id="toast-success" data-bs-animation="true" data-bs-autohide="true" data-bs-delay="5000">
|
2022-05-04 23:09:46 +00:00
|
|
|
<div class="toast-body text-center">
|
|
|
|
<i class="fas fa-check-circle text-success mr-2"></i>Link copied to clipboard
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|
2023-01-24 10:40:10 +00:00
|
|
|
<div class="toast" id="toast-post-success" style="position: fixed; bottom: 1.5rem; margin: 0 auto; left: 0; right: 0; width: 275px; z-index: 100000" data-bs-animation="true" data-bs-autohide="true" data-bs-delay="5000">
|
2022-05-04 23:09:46 +00:00
|
|
|
<div class="toast-body bg-success text-center text-white">
|
|
|
|
<i class="fas fa-comment-alt-smile mr-2"></i><span id="toast-post-success-text">Action successful!</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-01-24 10:40:10 +00:00
|
|
|
<div class="toast" id="toast-post-error" style="position: fixed; bottom: 1.5rem; margin: 0 auto; left: 0; right: 0; width: 275px; z-index: 100000" data-bs-animation="true" data-bs-autohide="true" data-bs-delay="5000">
|
2022-05-04 23:09:46 +00:00
|
|
|
<div class="toast-body bg-danger text-center text-white">
|
|
|
|
<i class="fas fa-exclamation-circle mr-2"></i><span id="toast-post-error-text">Error, please try again later.</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% block onload %}{% endblock %}
|
2022-11-18 19:16:40 +00:00
|
|
|
<script defer src="{{'js/vendor/clipboard.js' | asset}}"></script>
|
2022-11-21 08:52:22 +00:00
|
|
|
{% endblock %}
|