{% extends "layout.html" %} {% from "macros/form_inputs.html" import input_csrf_token with context %} {% from "macros/general.html" import display_subnav, set_account_status_img, set_forwarding_address_img, with context %} {% from "macros/msg_handlers.html" import user_msg_handler with context %} {% block title %}{{ _('Last Logins') }}{% endblock %} {% block navlinks_domains %}class="active"{% endblock %} {% block breadcrumb %} {% if all_are_admins %} {% set crumbs = [ (ctx.homepath + '/domains', _('All domains')), (ctx.homepath + '/profile/domain/general/' + cur_domain, cur_domain), (ctx.homepath + '/users/' + cur_domain, _('Users')), (ctx.homepath + '/mls/' + cur_domain, _('Mailing Lists')), (ctx.homepath + '/aliases/' + cur_domain, _('Aliases')), (ctx.homepath + '/admins/' + cur_domain, _('Admins')), ] %} {% else %} {% set crumbs = [ (ctx.homepath + '/domains', _('All domains')), (ctx.homepath + '/profile/domain/general/' + cur_domain, cur_domain), (ctx.homepath + '/users/' + cur_domain, _('Users')), (ctx.homepath + '/mls/' + cur_domain, _('Mailing Lists')), (ctx.homepath + '/aliases/' + cur_domain, _('Aliases')), ] %} {% if session.get('is_global_admin') %} {% set crumbs = crumbs + [(ctx.homepath + '/admins/' + cur_domain, _('Admins'))] %} {% endif %} {% endif %} {% if backend != "pgsql" %} {% set crumbs = crumbs + [('active', ctx.homepath + '/users/' + cur_domain + '/last_logins', _('Last Logins'))] %} {% endif %} {{ display_subnav(crumbs) }} {% endblock %} {% block main %} {# Show system message #} {{ user_msg_handler(msg) }}

{{ _("Last Logins") }}

{% if last_logins %} {% for email in last_logins %} {% set active = last_logins[email]["active"] %} {% set forwardings = last_logins[email]["forwardings"] %} {% set name = last_logins[email]["name"] %} {% set imap = last_logins[email]["imap"] %} {% set pop3 = last_logins[email]["pop3"] %} {% set lda = last_logins[email]["lda"] %} {% endfor %} {% else %} {% endif %}
{{ _("Display Name") }} {{ _("Mail Address") }} IMAP POP3 {{ _("Last Email Delivery") }}
{% if name %}{{ name | e }}{% endif %} {{ email }} {{ set_account_status_img(active) }} {% if forwardings %} {{ set_forwarding_address_img(email, forwardings) }} {% endif %} {% if imap > 0 %} {{ imap | epoch_seconds_to_gmt | utc_to_timezone(timezone=session['timezone']) }} {% endif %} {% if pop3 > 0 %} {{ pop3 | epoch_seconds_to_gmt | utc_to_timezone(timezone=session['timezone']) }} {% endif %} {% if lda > 0 %} {{ lda | epoch_seconds_to_gmt | utc_to_timezone(timezone=session['timezone']) }} {% endif %} {% if active %} {{ _("Disable") }} {% endif %}
{{ _("No any login or mail delivery yet.") }}
{# .all_last_logins #}
{# .box-wrapper #}
{# .box-body #}
{# .content-box #} {% endblock main %} {% block extra_js %} {% endblock extra_js %}