{% extends "control_panel/base.html" %} {% load i18n %} {% load staticfiles %} {% load my_filters %} {% block title %}{% blocktrans with device_name=device.name %}{{ device_name }} Device Syncing History{% endblocktrans %}{{ block.super }}{% endblock title %} {% block i18n_do_not_translate %} {% block users_active %}active{% endblock users_active %} {% block manage_active %}active{% endblock manage_active %} {% block facility_active %}active{% endblock facility_active %} {% endblock i18n_do_not_translate %} {% block headcss %}{{ block.super }} {% endblock headcss %} {% block headjs %}{{ block.super }} {% endblock headjs %} {% block buttons %}{{ block.super }} {% if is_own_device %}
{% trans "Sync to central server!" %} {% trans "Register" %}
{% endif %} {% endblock buttons %} {% block subnavbar %}{{block.super}}{% endblock subnavbar %} {% block control_panel_content %}

{% trans "Device Metadata" %}

{% if software_version %}
{% trans "Device ID" %}:
{{ device.id }}
{% trans "Current Version" %}:
{{ software_version }}
{% trans "Database Size" %}:
{{ database_size|floatformat }} MB
{% trans "Database last update" %}:
{{ database_last_updated }}
{% trans "Install Directory" %}:
{{ install_dir }}
{% elif not shown_sessions %} {% else %}
{% trans "Version" %}:
{{ device_version }}
{% trans "Operating System" %}:
{{ device_os }}
{% endif %}

{% trans "Sync Sessions" %}

{% if not session_pages %}

{% trans "This device has never synced with the central server." %}

{% trans "This device is not registered, and so cannot sync data with the central server." %}

{% else %} {% if sync_job %} {% if sync_job.is_running %}

{% trans "A sync is currently in progress..." %} {% trans "(refresh)" %}

{% else %}

{% if sync_job.last_run_successful %} {% trans "The last sync completed successfully" %} {% else %} {% trans "There was an error during the last sync" %} {% endif %} {% trans "show details" %}

{{ sync_job.log_set.all.0.stdout|linebreaksbr }}
{{ sync_job.log_set.all.0.stderr|linebreaksbr }}
{% endif %} {% endif %} {% for sync_session in session_pages %} {% endfor %}
{{ sync_session.timestamp }} {{ sync_session.models_uploaded }} {{ sync_session.models_downloaded }} {{ sync_session.errors }}
{% if session_pages.num_listed_pages > 1 %} {% endif %} {% endif%}
{% endblock control_panel_content %}