base.html.twig 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. {% extends '/stdgrid.html.twig' %}
  2. {% import 'settings/macros.html.twig' as macros %}
  3. {% block title %}{{ 'Settings' | trans }}{% endblock %}
  4. {% block stylesheets %}
  5. {{ parent() }}
  6. <link rel="preload" href="{{ asset('assets/default_theme/css/pages/settings.css') }}" as="style" type="text/css">
  7. <link rel="stylesheet" href="{{ asset('assets/default_theme/css/pages/settings.css') }}">
  8. {% endblock stylesheets %}
  9. {% block body %}
  10. <nav class='frame-section frame-section-padding'>
  11. <h1 class="frame-section-title">Settings</h1>
  12. <ul>
  13. <li>
  14. {% set profile_tabs = [{'title': 'Personal Info', 'desc': 'Nickname, Homepage, Bio and more.', 'id': 'settings-personal-info', 'form': personal_info_form}] %}
  15. {% set profile_tabs = profile_tabs|merge(handle_event('PopulateSettingsTabs', app.request, 'profile')) %}
  16. {{ macros.settings_details_container('Profile', 'Personal Information, Avatar and Profile', 'settings-profile-details', profile_tabs, _context) }}
  17. </li>
  18. <li>
  19. {% set muting_tabs = handle_event('PopulateSettingsTabs', app.request, 'muting') %}
  20. {{ macros.settings_details_container('Muting', 'Blocked tags and actors', 'settings-muting-details', muting_tabs, _context) }}
  21. </li>
  22. <li>
  23. {{ macros.settings_details_element('Email', 'Set incoming and outgoing email settings', 'settings-email-details', email_form, _context) }}
  24. </li>
  25. <li>
  26. {{ macros.settings_details_element('Password', 'Change current password', 'settings-password-details', password_form, _context) }}
  27. </li>
  28. <li>
  29. {{ macros.settings_details_element('Language', 'Select and set language preferences', 'settings-language-details', language_form, _context) }}
  30. </li>
  31. <li>
  32. {% set colour_tabs = handle_event('PopulateSettingsTabs', app.request, 'colours') %}
  33. {{ macros.settings_details_container('Colours', 'Customize your interface colours', 'settings-colour-details', colour_tabs, _context) }}
  34. </li>
  35. <li>
  36. {{ macros.settings_details_container('Notifications', 'Enable/disable notifications (Email, XMPP, Replies...)', 'notifications', tabbed_forms_notify, _context) }}
  37. </li>
  38. </ul>
  39. </nav>
  40. {% endblock body %}
  41. {% block javascripts %}{% endblock %}