2022-11-21 08:52:22 +00:00
{%- extends 'root.html' -%}
{% import 'settings/common.html' as common with context %}
{% block pagetitle %}Settings{% endblock %}
{% block body_attributes %}id="settings" {% if SITE_NAME == 'rDrama' and v and (v.is_banned or v.agendaposter) %}style="overflow-x: hidden;background:url(/assets/images/backgrounds/anime/1.webp?v=3) center center fixed; background-color: var(--background)"{% elif v and v.background %}style="overflow-x: hidden;background:url(/assets/images/backgrounds/{{v.background}}?v=3) center center fixed; background-color: var(--background){% if 'anime' not in v.background %};background-size: cover{% endif %}"{% endif %}{% endblock %}
{% 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" >
{% if error %}
< div class = "alert alert-danger alert-dismissible fade show my-3" 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-04 23:09:46 +00:00
< / button >
< / div >
{% endif %}
{% 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-05-04 23:09:46 +00:00
< / button >
< / div >
{% endif %}
< 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 >
< li class = "nav-item" > < a class = "nav-link{% if request.path=='/settings/apps' %} active{% endif %}" href = "/settings/apps" > Apps/Bots< / a > < / li >
< / 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 %}
< div class = "toast clipboard" id = "toast-success" role = "alert" aria-live = "assertive" aria-atomic = "true" data-bs-animation = "true" data-bs-autohide = "true" data-bs-delay = "5000" >
< div class = "toast-body text-center" >
< i class = "fas fa-check-circle text-success mr-2" > < / i > Link copied to clipboard
< / div >
< / div >
{% endblock %}
< div class = "toast" id = "toast-post-success" style = "position: fixed; bottom: 1.5rem; margin: 0 auto; left: 0; right: 0; width: 275px; z-index: 1000" role = "alert" aria-live = "assertive" aria-atomic = "true" data-bs-animation = "true" data-bs-autohide = "true" data-bs-delay = "5000" >
< 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 >
< div class = "toast" id = "toast-post-error" style = "position: fixed; bottom: 1.5rem; margin: 0 auto; left: 0; right: 0; width: 275px; z-index: 1000" role = "alert" aria-live = "assertive" aria-atomic = "true" data-bs-animation = "true" data-bs-autohide = "true" data-bs-delay = "5000" >
< 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 %}