{% if ui_from_profiles %} {% extends "layouts/" + render_mode + "-tall.html" %} {% else %} {% extends "logs/layout.html" %} {% endif %} {% block title %}{{_("Preferences")}}{% endblock %} {% block content %}
{{ csrf_field|safe }}

{{_("Preferences")}}

{% if ui_saved %}

{{_("Your settings have been saved.")}}

{% endif %}

{{_("Searches and Tags")}}

{{_("Here you can customize how search results and tag views are displayed.")}} {{_("The ordering and grouping options determine whether messages are grouped together into conversations or not, and which results are sorted to the top of the list.")}}

{{_("The display density determines how tightly the results are packed together on your screen.")}}

{%- set rpp = {config.prefs.num_results: ' selected'} %} {%- set rpp_opts = [20, 40, 80, 120] %} {%- if config.prefs.num_results not in rpp_opts %} {%- do rpp_opts.insert(0, config.prefs.num_results) %} {%- endif %}

{%- set dgo = {config.prefs.default_order: ' selected'} %} {%- set orders = [ ('rev-date', _("Conversations") + ", " + _("Newest First")), ('date', _("Conversations") + ", " + _("Oldest First")), ('rev-flat-date', _("Messages") + ", " + _("Newest First")), ('flat-date', _("Messages") + ", " + _("Oldest First")), ('rev-index', _("Conversations") + ", " + _("Unsorted"))] %} {%- if config.prefs.default_order not in ('rev-date', 'date', 'rev-flat-date', 'flat-date', 'rev-index') %} {%- do orders.insert(0, (config.prefs.default_order, _("Custom") + ': ' + config.prefs.default_order)) %} {%- endif %}

{%- set dd = {config.web.display_density: ' selected'} %}


{%- set languages = mailpile("languages").result %}

{{_("User Interface")}}

{{_("Mailpile is translated to many languages.")}} {{_("The translation only applies to the application, not the e-mails themselves.")}}

{{_("Note that some translations may be incomplete.")}}

{{_("Help translate Mailpile")}}.

{%- if languages %}

:

{% endif %} {%- for pref, val, label in ( ('web.keybindings', config.web.keybindings, _("Enable keyboard short-cuts")+':'), ('web.donate_visibility', config.web.donate_visibility, _("Display donate link in topbar?")), ) %} {%- set sel = {val: ' checked'} %}

{{_("On")}} {{_("Off")}}

{% endfor %}

{{_("Danger Zone")}}

{{_("Be careful!")}} {{_("These are technical settings which may interfere with normal use of Mailpile.")}} {{_("If Mailpile came with a warranty, changing these would invalidate it.")}}

{%- set danger_zone = [ ('web.developer_mode', config.web.developer_mode, _("Enable developer-only features")+':'), ('prefs.open_in_browser', config.prefs.open_in_browser, _("Open in browser on startup")+':'), ('prefs.always_bcc_self', config.prefs.always_bcc_self, _("Always BCC self when sending mail")+':'), ('prefs.auto_mark_as_read', config.prefs.auto_mark_as_read, _("Automatically mark e-mail as read")+':'), ] %} {%- if config.web.developer_mode %} {%- do danger_zone.extend([ ('prefs.gpg_use_agent', config.prefs.gpg_use_agent, _("Use the local GnuPG agent")+':'), ('prefs.gpg_html_wrap', config.prefs.gpg_html_wrap, _("Wrap keys and signatures in helpful HTML")+':'), ]) %} {%- endif %} {%- for pref, val, label in danger_zone %} {%- set sel = {val: ' checked'} %}

{{_("On")}} {{_("Off")}}

{% endfor %}

{% endblock %}