{% extends "layout.html" %} {% from "macros/general.html" import show_pages, with context %} {% from "macros/msgHandlers.html" import maillogMsgHandler with context %} {% block title %} {% if logType == 'sent' %} {{ _('Sent Mails') }} {% elif logType == 'received' %} {{ _('Received Mails') }} {% endif %} {% endblock %} {% block navlinks_active_system %}class="active"{% endblock %} {% block main %} {# Show system message #} {{ maillogMsgHandler(msg) }}

{% if logType == 'sent' %} {{ _('Sent Mails') }} {% elif logType == 'received' %} {{ _('Received Mails') }} {% endif %} {% if total is defined and records |length > 0 %} ({{ (cur_page-1) * session['pageSizeLimit'] + 1 }}-{{ (cur_page-1) * session['pageSizeLimit'] + records |length}}/{{ total }}) {% endif %}

{% if session.get('domainGlobalAdmin') is sameas true %} {% endif %} {% if records |length > 0 %} {% for r in records %} {% if session.get('domainGlobalAdmin') is sameas true %} {% endif %} {% if logType == 'sent' %} {% else %} {# logType == 'received' #} {% endif %} {% endfor %} {% else %} {% if session.get('domainGlobalAdmin') is sameas true %} {% endif %} {% if logType == 'sent' %} {% elif logType == 'received' %} {% endif %} {% endif %}
{{ _('Subject') }} {{ _('Sender') }} {{ _('Recipient') }} {{ _('Date') }}
{{ r.subject |cutString(length=50) |e }}{{ r.sender_email |e }} {{ r.recipient |e }}{{ r.sender_email |e }} {{ r.recipient |e }}{{ r.time_iso |setDatetimeFormat |e }}
{{ _('No outgoing mails.') }}{{ _('No incoming mails.') }}
{#-- .box-body --#}
{#-- .content-box --#} {% endblock main %}