{%- extends "layouts/" + render_mode + ".html" %} {%- block head %} {%- endblock %} {%- block title %}{{_("Welcome Home")}}{% endblock %} {%- block contenttools %} {%- if is_configured() %} {%- set activities = [{ 'name': 'browser', 'icon': 'list', 'url': U('/browse/'), 'text': _("Browse"), 'description': _("Browse files, mailboxes and settings") },{ 'name': 'addprofile', 'icon': 'plus', 'aclass': 'auto-modal', 'url': U('/profiles/add/'), 'text': _("Add Account"), 'description': _("Create a new Account") },{ 'name': 'keys', 'icon': 'key', 'aclass': 'auto-modal', 'url': U('/settings/set/password/'), 'text': _("Keys"), 'description': _("Manage Your Encryption Keys") }] %} {%- set selection_initial_prompt = _("Configure your accounts, profiles and other settings") %} {%- include("partials/tools_default.html") %} {% else %} {%- set activities = [{ 'name': 'settings', 'icon': 'settings', 'url': U('/settings/privacy.html?ui_from_profiles=True'), 'text': _("Privacy & Security"), 'description': _("Security and Privacy Settings") }] %} {%- set selection_initial_prompt = _("You can configure accounts and profiles once you have reviewed your privacy settings.") %} {%- include("partials/tools_default.html") %} {% endif %} {%- endblock %} {%- block content %}

{{_("Welcome Home")}}

{%- if result.loading or not result.loaded %} {%- elif result.rids %} {%- for profile_rid in result.rids %} {%- set p = result.profiles[result.rids[profile_rid]] %} {%- if 'x-mailpile-profile-tag' in p and p['x-mailpile-profile-tag'] in config.tags %} {%- set t = mailpile('tags', config.tags[p['x-mailpile-profile-tag']].slug).result.tags.0 %} {%- else %} {%- set t = {'slug': 'all-mail', 'stats': {'new': '', 'all': ''}} %} {%- endif %} {%- if 'x-mailpile-profile-route' in p %} {%- set route = config.routes[p['x-mailpile-profile-route']] %} {%- else %} {%- set route = '' %} {%- endif %} {%- endfor %} {%- elif not is_configured() %} {%- elif result.profiles|length < 1 %} {%- endif %} {%- endif %}

{{_("E-mail Accounts")}}

{%- if result.profiles|length > 0 %}
{%- if is_dev_version() %} {%- endif %} {{_("settings")}} {%- else %} {%- endif %}

{{_("Still loading profiles and contacts, please wait...")}}

{%- if route %} {%- endif %} {{ p.fn }} {% for e in p.email %} {{ e.email }}{% if not loop.last %}
{% endif %} {%- endfor %}
{{ t.stats.new }} {{ t.stats.all }} {%- if is_dev_version() %} ? {%- endif %} {%- if not (p['x-mailpile-profile-source'] or []) %} {%- endif %} {%- for ms in (p['x-mailpile-profile-source'] or []) %} {%- set source_id = ms['profile-source'] %} {%- set source = config.sources[source_id] %} {%- endfor %} {# #} {%- if is_dev_version() %} {%- endif %}

{{_("Please review your privacy settings before adding any accounts.")}}


{{_("You have not configured any accounts yet.")}}

{%- if is_configured() %} {{_("Master Inbox")}}    {{_("Unread Mail")}} {%- if result.profiles|length > 0 %} {{_("Browse")}}    {%- endif %} {{_("Add Account")}}

{% set motd = mailpile('motd', '--noupdate').result %} {% if motd._motd %}

{{_("Message Of The Day, %(date)s", date=motd.timestamp|friendly_datetime)}}

{{ motd._motd|to_br }} {% if motd.source %} - {{ motd.signed }} {% endif %}

{{_("This is Mailpile version %(version)s", version=config.version)}}: {{ motd._version_info }}.

{% endif %}
{% if config.web.release_notes %} {% endif %} {%- endblock %}