{%- extends "logs/layout.html" %} {%- block title %}{{_("Mailpile Event Log")}}{% endblock %} {%- macro event_flags_icon(event) %} {%- if 'R' in event.flags -%} {%- elif 'c' in event.flags -%} {%- else -%} {{- event.flags -}} {%- endif -%} {%- endmacro %} {%- macro event_source(event) %} {{ event.source }} {%- endmacro %} {%- macro event_details(event) %}
{{ event|json }}
{%- endmacro %} {%- macro show_event(event) %}

{{ event.ts_hhmm or event.ts|friendly_time }} {{ event_source(event) }} {{ event.message }}

{%- if ui_expand == event.event_id %}

{{ event_details(event) }}

{%- endif %} {# FIXME: {%- if event.data.undo %} {{ _('Undo') }} {%- endif %} #} {%- endmacro %} {%- block logs_content %}

{{_("Mailpile Event Log")}}

{{_("Ongoing Events")}}

{{_("Ongoing events represent current actions taken by Mailpile on your behalf, such as watching a Mail Source for new mail or refreshing your contact database.")}}

{{_("Browsing the event details can help with troubleshooting if Mailpile is not behaving as you expect.")}}

{%- set displayed = [] %} {%- for event in result.events|reverse %} {%- if 'R' in event.flags %} {{- show_event(event) }} {% do displayed.append(1) %} {% endif %} {%- endfor %} {%- if not displayed %}

{{_("No Events Found")}}

{%- endif %}
{%- set displayed = [] %} {%- for event in result.events|reverse %} {%- if 'i' in event.flags %} {{- show_event(event) }} {% do displayed.append(1) %} {% endif %} {%- endfor %}

{{_("Completed Events")}}

{{_("The Event Log gives an overview over what has happened in your Mailpile recently.")}}

{{_("Some events, such as Tagging operations, can be undone.")}}

{%- for event in result.events[-50:]|reverse %} {%- if 'R' not in event.flags %} {{- show_event(event) }} {% endif %} {%- endfor %}

{%- endblock %}