{% if session.get('account_is_mail_user') %} {% extends "layout_user.html" %} {% else %} {% extends "layout.html" %} {% endif %} {% from "macros/form_inputs.html" import input_csrf_token with context %} {% from "macros/general.html" import set_account_activity_img, show_pages with context %} {% from "macros/amavisd.html" import display_search_modal, display_idtabs_of_maillog, display_icon_of_account_profile with context %} {% from "macros/msg_handlers.html" import amavisd_msg_handler with context %} {% block title %} {% if log_type == 'sent' %} {{ _('Sent Mails') }} {% elif log_type == 'received' %} {{ _('Received Mails') }} {% endif %} {% endblock %} {% if session.get('account_is_mail_user') %} {% block navlinks_rcvd_mails %}class="active"{% endblock %} {% else %} {% block navlinks_activities %}class="active"{% endblock %} {% endif %} {% block main %} {# Show system message #} {{ amavisd_msg_handler(msg) }} {# Hide sender, recipient, score #} {% set show_sender = True %} {% set show_recipient = True %} {% set show_score = False %} {% if log_type == 'sent' and account_type == 'user' %} {% set show_sender = False %} {% endif %} {% if log_type == 'received' and account_type == 'user' %} {% set show_recipient = False %} {% endif %} {% if session.get('account_is_mail_user') %} {% set show_recipient = False %} {% endif %} {% if log_type == 'received' %} {% set show_score = True %} {% endif %} {% if log_type == 'sent' %} {% if account_type == 'domain' %} {% set tab_title = _('Mails Sent by Domain: %s') |format(account) %} {% set pages_baseurl = ctx.homepath + '/activities/sent/domain/' + account %} {% elif account_type == 'user' %} {% set tab_title = _('Mails Sent by User: %s') |format(account) %} {% set pages_baseurl = ctx.homepath + '/activities/sent/user/' + account %} {% else %} {% set tab_title = _('Sent Mails') %} {% set pages_baseurl = ctx.homepath + '/activities/sent' %} {% endif %} {% elif log_type == 'received' %} {% if account_type == 'domain' %} {% set tab_title = _('Received Mails of Domain: %s') |format(account) %} {% set pages_baseurl = ctx.homepath + '/activities/received/domain/' + account %} {% elif account_type == 'user' %} {% set tab_title = _('Received Mails of User: %s') |format(account) %} {% set pages_baseurl = ctx.homepath + '/activities/received/user/' + account %} {% else %} {% set tab_title = _('Received Mails') %} {% set pages_baseurl = ctx.homepath + '/activities/received' %} {% endif %} {% endif %}
{{ _("You can change the kept days here:") }} {{ _("Data Clean Up") }}
{% endif %}