{# version, hostname, uptime, loadavg, #} {% extends "layout.html" %} {% from "macros/msg_handlers.html" import success_info, error_info with context %} {% block title %} {{ _('Dashboard') }} {% endblock %} {% block navlinks_dashboard %}class="active"{% endblock %} {% block main %} {# Checked and get response data #} {% if session.get('new_version_available') %} {{ success_info( _("New version of iRedAdmin, %s, is now available for upgrading. Upgrade tutorial.") |format(session.get('new_version') |e), removable=false, trusted=true ) }} {% elif session.get('new_version_available') is sameas false %} {# Error while checking new version #} {{ error_info( _('Error while checking new version of iRedAdmin:') + ' ' + session.get('new_version_check_error') |e ) }} {% endif %}
{{ _('Number of domains') }} | {{ num_existing_domains |e }} |
---|---|
{{ _('Number of users') }} | {{ num_existing_users |e }} |
{{ _('Stored emails') }} | {% if total_messages %}{{ total_messages |e }} {{ _('Emails') }}.{% endif %} {% if total_bytes %}{{ total_bytes |file_size_format }}.{% endif %} |
iRedMail | {{ iredmail_version }} |
iRedAdmin | {{ version |e }} {% if backend == 'mysql' %} (MySQL) {% elif backend == 'pgsql' %} (PostgreSQL) {% elif backend == 'ldap' %} (LDAP) {% endif %} |
{{ _('Hostname') }} | {{ hostname |e }} |
{{ _('Uptime') }} | {{ _('%s days, %s hours, %s minutes.') |format(uptime[0] |e, uptime[1] |e, uptime[2] |e ) }} |
{{ _('Server Load') }} | {{ loadavg[0] }}, {{ loadavg[1] }}, {{ loadavg[2] }} |
{{ _('Network') }} ({{ netif[0] |e }}) | {{ netif[1] }} |