{# version, hostname, uptime, loadavg, #} {% extends "layout.html" %} {% from "macros/amavisd.html" import display_amavisd_quarantined_mails with context %} {% block title %} {{ _('Dashboard') }} {% endblock %} {% block navlinks_active_dashboard %}class="active"{% endblock %} {% block main %} {% if session.get('enableAmavisdLoggingIntoSQL') is sameas true %}

{{ _('Statistics of latest 24 hours') |title }}

{% if session.get('enableAmavisdQuarantine') is sameas true %} {% endif %}
{{ _('Received') }} {{ numberOfIncomingMails }}
{{ _('Sent') }} {{ numberOfOutgoingMails }}
{{ _('Virus') }} {{ numberOfVirusMails }}
{{ _('Quarantined') }} {{ amavisdQuarantineCount }}

{{ _('Top 10 senders') |title }}

{% for s in topSenders %} {% endfor %}
{{ _('Total') }} {{ _('Sender') }}
{{ s.total }} {{ s.mail |e }}

{{ _('Top 10 recipients') |title }}

{% for s in topRecipients %} {% endfor %}
{{ _('Total') }} {{ _('Recipient') }}
{{ s.total }} {{ s.mail |e }}
{% endif %}
{% if session.get('domainGlobalAdmin') is sameas true %}

{{ _('System Information') }}

{% if session.get('enableShowUsedQuota') is sameas true %} {% endif %} {# ---- System Information ---- #} {% if uptime is not sameas none and uptime|length == 3 %} {% endif %} {# ---- Network interfaces and IP info ---- #} {% for netif in netif_data.items() %} {% if netif[0] != 'lo' %} {% endif %} {% endfor %}
{{ _('Stored Emails') }} {% if totalMessages is not sameas none %}{{ totalMessages }} {{ _('Emails') }}.{% endif %} {% if totalBytes is not sameas none %}{{ totalBytes |filesizeformat }}.{% endif %}
iRedAdmin-Pro v{{ version }} (LDAP)  {% if newVersionInfo[0] is sameas none %} {# Already checked today. #}   {% elif newVersionInfo[0] is sameas true %} {# New version available #} {% if newVersionInfo[1].version > version %} {{ _("Update available: v%s.") |format(newVersionInfo[1].url, newVersionInfo[0].version,) }} {% endif %} {% else %} {# Error while checking #} {{ _('Error while checking new version: %s') |format(newVersionInfo[1]) }} {% endif %}
{{ _('Hostname') }} {{ hostname }}
{{ _('Uptime') }} {{ _('%s days, %s hours, %s minutes.') |format(uptime[0], uptime[1], uptime[2]) }}
{{ _('Server load') }} {{ '%s, %s, %s.' |format(loadavg[0], loadavg[1], loadavg[2]) }}
{{ _('Network') }} ({{ netif[0] }}) {{ netif[1]['addr'] }}/{{ netif[1]['netmask'] }}
{# .box-wrap #}
{# .col1-3 #} {% endif %}
{# .columns #} {# -- Import accounts -- #} {#
{{ _('Users') }} 
#} {# ---- Search ---- #} {#
#} {# ---- Quarantined emails ---- #} {% if session.get('enableAmavisdQuarantine') is sameas true %} {% if amavisdQuarantineCount > 0 %}

{{ _('Latest 10 Quarantined Mails.') }} {{ _('Total:') }} {{ amavisdQuarantineCount }}

{# list of quarantined mails #} {{ display_amavisd_quarantined_mails(amavisdQuarantineRecords) }}
{# .box-wrap #}
{# .box-body #}
{# .content-box #} {% endif %} {% endif %} {# ---- END: Quarantined emails ---- #} {% endblock main %} {% block js %} {{ load_jquery(['tablesorter'], sortFirstCol=false) }} {% endblock js %}