{% extends "layouts/" + render_mode + ".html" %} {% block content %} {% if result %}
New messages received! Click here (or press f) to refresh your view.
{% for mid in result.thread_ids %} {% include("partials/search_item.html") %} {% endfor %}
{% if result.stats.total > 0 %}
{% set searchterms = result.search_terms|join(' ') %} {% if result.stats.start > 1 %} {% set newstart = result.stats.start-result.stats.count %} {% set newend = newstart+result.stats.count-1 %} {{_("Previous")}} {% endif %} {% if result.stats.start + result.stats.count < result.stats.total %} {% set newstart = result.stats.start+result.stats.count %} {% set newend = newstart+result.stats.count-1 %} {{_("Next")}} {% endif %}
{% if result.stats.total > 1 %} {{result.stats.start}} - {{result.stats.end}} {{_("of")}} {{result.stats.total}} {{_("Conversations")}} {% elif result.stats.total == 1 %} {{_("1 Conversation")}} {% endif %}
{{_("Searched %(number)s messages in %(elapsed)s seconds.", number=mailpile_size, elapsed=elapsed)}} {{_("Vroom!")}}
{% else %}
{%- set profiles = mailpile('profiles').result.profiles %} {%- if profiles|length <= 0 %}

{{_("Nothing Happened.")}}

{{_("Usually, matching e-mails would be listed here.")}}


{{_("You need to create an account and add some mail first!")}}

{{_("Manage your Accounts")}}

{%- else %} {%- if 'in:spam' in result.search_terms %}

{{_("No Spam Found, Hooray!")}}

{%- elif 'in:inbox' in result.search_terms %}

{{_("Inbox zero? Impressive!")}}

{%- else %}

{{_("Nothing Happened.")}}

{{_("It seems your Mailpile does not contain any messages for the search")}}:

"{% for term in result.search_terms %}{{term}}{% if not loop.last %} {% endif %}{% endfor %}"

{%- endif %}

{{_("Here are some other options for you")}}:

{{_("Browse for mailboxes")}}   {{_("Compose a message")}}

{{_("Search Tips & Tricks")}}

{% endif %}
{% endif %} {% else %}

{{_("Hrm, We Could Not Find Anything")}}

{% endif %} {% endblock %}