2021-07-28 00:42:08 +00:00
2021-07-28 01:11:25 +00:00
<!DOCTYPE html>
2021-07-21 01:12:26 +00:00
< html lang = "en" >
< head >
2021-07-21 11:48:31 +00:00
{% include "bootstrap.html" %}
2021-07-21 11:37:36 +00:00
< script >
2021-07-21 11:48:31 +00:00
//email change
// Show confirm password field when user clicks email box
$('#new_email').on('input', function () {
var id = document.getElementById("email-password");
var id2 = document.getElementById("email-password-label");
var id3 = document.getElementById("emailpasswordRequired");
id.classList.remove("d-none");
id2.classList.remove("d-none");
id3.classList.remove("d-none");
});
// 2FA toggle modal
$('#2faModal').on('hidden.bs.modal', function () {
var box = document.getElementById("2faToggle");
box.checked = !box.checked;
});
2021-07-21 11:37:36 +00:00
//Email verification text
function emailVerifyText() {
document.getElementById("email-verify-text").innerHTML = "Verification email sent! Please check your inbox.";
}
< / script >
2021-07-21 01:12:26 +00:00
< meta charset = "utf-8" >
< meta name = "viewport" content = "width=device-width, initial-scale=1, shrink-to-fit=no" >
< meta name = "description" content = "" >
< meta name = "author" content = "" >
2021-09-13 15:58:52 +00:00
< link rel = "icon" type = "image/png" href = "/assets/images/{{'SITE_NAME' | app_config}}/icon.webp" >
2021-07-21 01:12:26 +00:00
2021-08-19 05:14:52 +00:00
< title > {% block pagetitle %}Settings - {{'SITE_NAME' | app_config}}{% endblock %}< / title >
2021-07-21 01:12:26 +00:00
< meta property = "og:type" content = "article" / >
2021-08-19 05:14:52 +00:00
< meta property = "og:title" content = "{{'SITE_NAME' | app_config}}" / >
2021-08-02 16:13:41 +00:00
< meta property = "og:site_name" content = "{{request.host}}" / >
2021-09-13 15:58:52 +00:00
< meta property = "og:image" content = "{{'SITE_NAME' | app_config}}/assets/images/{{'SITE_NAME' | app_config}}/preview.webp" / >
2021-08-02 16:13:41 +00:00
< meta property = "og:url" content = "{{request.host}}" >
2021-09-08 08:03:38 +00:00
< meta property = "og:description" name = "description" content = "{{'SITE_NAME' | app_config}} - {{'SLOGAN' | app_config}}" >
2021-08-04 16:21:10 +00:00
< meta property = "og:author" name = "author" content = "@{{request.host_url}}" / >
2021-08-02 16:13:41 +00:00
< meta property = "og:site_name" content = "{{request.host}}" / >
2021-07-21 01:12:26 +00:00
< meta name = "twitter:card" content = "summary_large_image" / >
2021-08-04 16:21:10 +00:00
< meta name = "twitter:site" content = "@{{request.host_url}}" >
2021-08-19 05:14:52 +00:00
< meta name = "twitter:title" content = "{{'SITE_NAME' | app_config}}" / >
2021-08-04 16:21:10 +00:00
< meta name = "twitter:creator" content = "@{{request.host_url}}" >
2021-09-08 08:03:38 +00:00
< meta name = "twitter:description" content = "{{'SITE_NAME' | app_config}} - {{'SLOGAN' | app_config}}" / >
2021-09-13 15:58:52 +00:00
< meta name = "twitter:image" content = "{{'SITE_NAME' | app_config}}/assets/images/{{'SITE_NAME' | app_config}}/preview.webp" / >
2021-08-02 16:13:41 +00:00
< meta name = "twitter:url" content = "{{request.host}}" / >
2021-07-21 01:12:26 +00:00
< link href = "https://fonts.googleapis.com/css?family=Open+Sans:400,600&display=swap" rel = "stylesheet" >
<!-- Bootstrap core CSS -->
< link rel = "stylesheet" href = "https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
2021-08-19 05:14:52 +00:00
<!-- {{'SITE_NAME' | app_config}} CSS -->
2021-07-21 01:12:26 +00:00
< link rel = "stylesheet" href = "/assets/style/{{v.theme}}_{{v.themecolor}}.css" >
{% if v.agendaposter %}< link rel = "stylesheet" href = "/assets/style/agendaposter.css" > {% elif v.css %}< link rel = "stylesheet" href = "/@{{v.username}}/css" > {% endif %}
<!-- Font Awesome -->
< link href = "/assets/style/fa.css" rel = "stylesheet" > <!-- load all styles -->
< script >
function formkey() {
return '{{v.formkey}}';
}
< / script >
< / head >
2021-08-15 01:43:22 +00:00
< body id = "settings" style = "overflow-x: hidden; {% if v and v.background %} background:url(/assets/images/backgrounds/{{v.background}}) no-repeat center center fixed !important; background-size: cover!important; background-color: #000!important;{% endif %}" >
2021-07-21 01:12:26 +00:00
{% include "header.html" %}
<!-- Page Content -->
< 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 >
< button type = "button" class = "close" data-dismiss = "alert" aria-label = "Close" >
< span aria-hidden = "true" > < i class = "far fa-times" > < / i > < / span >
< / 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 >
< button type = "button" class = "close" data-dismiss = "alert" aria-label = "Close" >
< span aria-hidden = "true" > < i class = "far fa-times" > < / i > < / span >
< / button >
< / div >
{% endif %}
< div class = "mt-3" >
< h1 class = "d-none d-md-block" > Settings< / h1 >
< h2 class = "h3 d-md-none" > Settings< / h2 >
< / div >
<!-- Settings tabs -->
<!-- Desktop -->
< div class = "flex-row bg-white box-shadow-bottom sticky d-none d-sm-flex mt-3 mb-3 mb-sm-5" >
< ul class = "nav settings-nav" >
< li class = "nav-item" >
< a class = "nav-link{% if request.path=='/settings/profile' %} active{% endif %}" href = "/settings/profile" > Profile< / a >
< / li >
< li class = "nav-item" >
< a class = "nav-link{% if request.path=='/settings/content' %} active{% endif %}" href = "/settings/content" > Content< / a >
< / li >
< li class = "nav-item" >
< a class = "nav-link{% if request.path=='/settings/css' %} active{% endif %}" href = "/settings/css" > Custom CSS< / a >
< / li >
< li class = "nav-item" >
< a class = "nav-link{% if request.path=='/settings/profilecss' %} active{% endif %}" href = "/settings/profilecss" > Profile 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/blocks' %} active{% endif %}" href = "/settings/blocks" > Block users< / a >
< / li >
< li class = "nav-item" >
< a class = "nav-link{% if request.path=='/settings/apps' %} active{% endif %}" href = "/settings/apps" > Apps< / a >
< / li >
< / ul >
< / div >
<!-- Mobile -->
< 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" >
< ul class = "nav settings-nav" >
< li class = "nav-item" >
2021-07-21 17:04:29 +00:00
< a class = "nav-link{% if request.path=='/settings/profile' %} active{% endif %} px-25 " href = "/settings/profile" > < i class = "fas fa-cog text-lg mr-0" > < / i > < / a >
2021-07-21 01:12:26 +00:00
< / li >
< li class = "nav-item" >
2021-07-21 17:04:29 +00:00
< a class = "nav-link{% if request.path=='/settings/content' %} active{% endif %} px-25 " href = "/settings/content" > < i class = "fas fa-filter text-lg mr-0" > < / i > < / a >
2021-07-21 01:12:26 +00:00
< / li >
< li class = "nav-item" >
2021-07-21 17:04:29 +00:00
< a class = "nav-link{% if request.path=='/settings/css' %} active{% endif %} px-25 " href = "/settings/css" > < i class = "fas fa-palette text-lg mr-0" > < / i > < / a >
2021-07-21 01:12:26 +00:00
< / li >
< li class = "nav-item" >
2021-07-21 17:04:29 +00:00
< a class = "nav-link{% if request.path=='/settings/profilecss' %} active{% endif %} px-25 " href = "/settings/profilecss" > < i class = "fas fa-palette text-lg mr-0" > < / i > < / a >
2021-07-21 01:12:26 +00:00
< / li >
< li class = "nav-item" >
2021-07-21 17:04:29 +00:00
< a class = "nav-link{% if request.path=='/settings/security' %} active{% endif %} px-25 " href = "/settings/security" > < i class = "fas fa-lock-alt text-lg mr-0" > < / i > < / a >
2021-07-21 01:12:26 +00:00
< / li >
< li class = "nav-item" >
2021-07-21 17:04:29 +00:00
< a class = "nav-link{% if request.path=='/settings/blocks' %} active{% endif %} px-25 " href = "/settings/blocks" > < i class = "fas fa-user-minus text-lg mr-0" > < / i > < / a >
2021-07-21 01:12:26 +00:00
< / li >
< li class = "nav-item" >
2021-07-21 17:04:29 +00:00
< a class = "nav-link{% if request.path=='/settings/apps' %} active{% endif %} px-25 " href = "/settings/apps" > < i class = "fas fa-code text-lg mr-0" > < / i > < / a >
2021-07-21 01:12:26 +00:00
< / li >
< / ul >
< / div >
2021-08-15 01:03:29 +00:00
{% block content %}
{% endblock %}
2021-07-21 01:12:26 +00:00
< / div >
< / div >
< / div >
{% if v %}
{% include "2fa_modal.html" %}
{% endif %}
<!-- Clipboard Toast -->
{% block clipboard %}
< div class = "toast clipboard" id = "toast-success" role = "alert" aria-live = "assertive" aria-atomic = "true" data-animation = "true" data-autohide = "true" data-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 >
< div class = "toast clipboard" id = "toast-error" role = "alert" aria-live = "assertive" aria-atomic = "true" data-animation = "true" data-autohide = "true" data-delay = "5000" >
< div class = "toast-body text-center" >
< i class = "fas fa-exclamation-circle text-danger mr-2" > < / i > Unable to copy link
< / div >
< / div >
{% endblock %}
<!-- ClipboardJS -->
< script src = "https://cdn.jsdelivr.net/npm/clipboard@2/dist/clipboard.min.js" > < / script >
<!-- Instantiate clipboard by passing a string selector -->
< script type = "text/javascript" >
var clipboard = new ClipboardJS('.copy-link');
clipboard.on('success', function(e) {
jQuery(function($) {
$('#toast-success').toast('show');
})
console.log(e);
});
clipboard.on('error', function(e) {
jQuery(function($) {
$('#toast-error').toast('show');
})
console.log(e);
});
< / script >
<!-- Post toasts -->
< 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-animation = "true" data-autohide = "true" data-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" > < / 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-animation = "true" data-autohide = "true" data-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" > < / span >
< / div >
< / div >
2021-09-13 18:07:37 +00:00
< script src = "/assets/js/general26.js" > < / script >
2021-07-21 01:12:26 +00:00
{% block onload %}{% endblock %}
< / body >
2021-08-22 17:00:07 +00:00
< / html >