2021-07-30 01:29:25 +09:00
|
|
|
{% extends '/stdgrid.html.twig' %}
|
2020-07-27 00:05:07 +09:00
|
|
|
|
2021-12-22 04:03:28 +09:00
|
|
|
{% import 'settings/macros.html.twig' as macros %}
|
|
|
|
|
2021-11-24 06:09:45 +09:00
|
|
|
{% block title %}{{ 'Settings' | trans }}{% endblock %}
|
2020-07-27 00:05:07 +09:00
|
|
|
|
2021-10-06 06:44:22 +09:00
|
|
|
{% block stylesheets %}
|
|
|
|
{{ parent() }}
|
|
|
|
<link rel="preload" href="{{ asset('assets/default_theme/css/pages/settings.css') }}" as="style" type="text/css">
|
|
|
|
<link rel="stylesheet" href="{{ asset('assets/default_theme/css/pages/settings.css') }}">
|
|
|
|
{% endblock stylesheets %}
|
|
|
|
|
2021-11-24 06:09:45 +09:00
|
|
|
{% block body %}
|
2021-12-24 06:29:46 +09:00
|
|
|
<nav class='section-widget section-padding'>
|
2022-01-20 03:21:51 +09:00
|
|
|
<h1 class="section-widget-title">Settings</h1>
|
2021-11-24 06:09:45 +09:00
|
|
|
<ul>
|
|
|
|
<li>
|
2021-12-23 23:04:00 +09:00
|
|
|
{% set profile_tabs = [{'title': 'Personal Info', 'desc': 'Nickname, Homepage, Bio and more.', 'id': 'settings-personal-info', 'form': personal_info_form}] %}
|
2021-12-09 02:53:29 +09:00
|
|
|
{% set profile_tabs = profile_tabs|merge(handle_event('PopulateSettingsTabs', app.request, 'profile')) %}
|
2021-12-22 04:03:28 +09:00
|
|
|
{{ macros.settings_details_container('Profile', 'Personal Information, Avatar and Profile', 'settings-profile-details', profile_tabs, _context) }}
|
2021-11-24 06:09:45 +09:00
|
|
|
</li>
|
2021-12-09 03:47:28 +09:00
|
|
|
<li>
|
|
|
|
{% set muting_tabs = handle_event('PopulateSettingsTabs', app.request, 'muting') %}
|
2021-12-22 04:03:28 +09:00
|
|
|
{{ macros.settings_details_container('Muting', 'Blocked tags and actors', 'settings-muting-details', muting_tabs, _context) }}
|
2021-12-09 03:47:28 +09:00
|
|
|
</li>
|
2021-08-09 21:25:08 +09:00
|
|
|
<li>
|
2021-12-22 04:03:28 +09:00
|
|
|
{{ macros.settings_details_element('Email', 'Set incoming and outgoing email settings', 'settings-email-details', email_form, _context) }}
|
2021-12-09 02:53:29 +09:00
|
|
|
</li>
|
|
|
|
<li>
|
2021-12-22 04:03:28 +09:00
|
|
|
{{ macros.settings_details_element('Password', 'Change current password', 'settings-password-details', password_form, _context) }}
|
2021-12-03 11:51:41 +09:00
|
|
|
</li>
|
|
|
|
<li>
|
2021-12-22 04:03:28 +09:00
|
|
|
{{ macros.settings_details_element('Language', 'Select and set language preferences', 'settings-language-details', language_form, _context) }}
|
2021-12-03 11:51:41 +09:00
|
|
|
</li>
|
|
|
|
<li>
|
2021-12-09 02:53:29 +09:00
|
|
|
{% set colour_tabs = handle_event('PopulateSettingsTabs', app.request, 'colours') %}
|
2021-12-22 04:03:28 +09:00
|
|
|
{{ macros.settings_details_container('Colours', 'Customize your interface colours', 'settings-colour-details', colour_tabs, _context) }}
|
2021-08-09 21:25:08 +09:00
|
|
|
</li>
|
|
|
|
<li>
|
2021-12-22 04:03:28 +09:00
|
|
|
{{ macros.settings_details_container('Notifications', 'Enable/disable notifications (Email, XMPP, Replies...)', 'notifications', tabbed_forms_notify, _context) }}
|
2021-08-09 21:25:08 +09:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</nav>
|
2020-07-27 00:05:07 +09:00
|
|
|
{% endblock body %}
|
|
|
|
|
2021-11-15 22:34:34 +09:00
|
|
|
{% block javascripts %}{% endblock %}
|