{%- 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 and Mailboxes") },{ 'name': 'addprofile', 'icon': 'plus', 'aclass': 'auto-modal', 'url': U('/profiles/add/'), 'text': _("Add Account"), 'description': _("Create a new Account") }] %} {%- 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"), '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.profiles|length > 0 %}

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

{%- 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 %} {% endif %}
{{_("Your name")}} {{_("E-mail address")}} {{_("New")}} {{_("Total")}} {{_("Settings")}}

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

{%- if route %} {%- endif %} {%- if p.photo %} {%- endif %} {{ p.fn }} {% for e in p.email %} {{ e.email }}{% if not loop.last %}
{% endif %} {%- endfor %}
{{ friendly_number(t.stats.new) }} {{ friendly_number(t.stats.all) }} {%- 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 %}
{% elif not is_configured() %}

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

{%- elif result.profiles|length < 1 %}{# > #}

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

{%- endif %} {% 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 %}