{% import 'components/macros.html' as macro %} {% macro render_status_row(title, task) %} {{ title }} {% if not task %} {{ _('Never executed.') }} {% elif task.running %} {{ _('Running since %(since)s', since=format_datetime(task.started)) }} {% else %} {{ _('Finished since %(since)s', since=format_datetime(task.finished)) }} {% endif %} {% endmacro %} {% set breadcrumb_items = [ (_('Settings'), url_for('settings.info')), (_('Informations'), False), ] %} {% extends 'base.html' %} {% block title %} {{ breadcrumb_items | map(attribute=0) | join(' / ') }} {% endblock %} {% block header %}{% endblock %} {% block content %}
{% include 'components/menu_settings.html' %}
{{ macro.breadcrumb(breadcrumb_items) }}
{{ render_status_row(_('Blackhole synchronization'), info.sync_blackhole) }} {{ render_status_row(_('Seedbox synchronization'), info.sync_seedbox) }} {{ render_status_row(_('Heartbeat'), info.heartbeat) }}
{{ _('Statistics') }}
{{ _('Number of files downloaded') }} {{ info.stats_total_files }}
{{ _('Total size of files downloaded') }} {{ info.stats_total_size }}
{{ _('Since') }} {% if info.stats_first == None %} {{ _('Never executed.') }} {% else %} {{ format_datetime(info.stats_first) }}
{{ info.stats_first_delta }} {% endif %}
{{ _('Versions') }}
{{ _('SeedboxSync version') }} {{ info.version }}
{{ _('SeedboxSync database version') }} {{ info.last_migration }}
{{ _('Tasks') }}
{% endblock %}