{%- extends "layouts/" + render_mode + ".html" %} {%- block head %} {%- endblock %} {%- block title %}{{_("Welcome Home")}}{% endblock %} {%- block contenttools %} {%- set activities = [{ '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") }] %} {%- include("partials/tools_default.html") %} {%- endblock %} {%- block content %}

{{_("Welcome Home")}}

{%- for profile_rid in result.rids %} {%- set p = result.profiles[result.rids[profile_rid]] %} {%- if 'x-mailpile-profile-tag' in p %} {%- set t = mailpile('tags', config.tags[p['x-mailpile-profile-tag']].slug).result.tags.0 %} {%- else %} {%- set t = {'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 %} {%- if result.loading %} {%- elif result.profiles|length < 1 %} {%- endif %}

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

{%- if result.profiles|length > 0 %}
settings {% else %} {% endif %}
{%- 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 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 %} {# #}

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


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

{{_("Master Inbox")}}    {{_("Unread Mail")}} {{_("Browse")}}    {{_("Add Account")}}

{#

Conversations

{{ mailpile_render('as.html!content', 'search', 'in:mp_rpl')[1]|safe }}
#}
{%- endblock %}