{% extends "control_panel/base.html" %} {% load i18n %} {% load staticfiles %} {% block title %}{{ device.name }}{% trans "Device Syncing History" %}{{ block.super }}{% endblock title %} {% block headcss %}{{ block.super }} {% endblock headcss %} {% block buttons %}{{ block.super }} {% if is_own_device %}
{% trans "Sync Now!" %} {% trans "Register" %}
{% endif %} {% endblock buttons %} {% block control_panel_content %}

{% trans "Device Metadata" %}

{% if software_version %}
{% trans "Device ID" %}:
{{ device.id }}
{% trans "Current Version" %}:
{{ software_version }}
{% trans "Released Date" %}:
{{ software_release_date }}
{% 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" %}:
{{ shown_sessions.0.client_version }}
{% trans "Operating System" %}:
{{ shown_sessions.0.client_os }}
{% endif %}

{% trans "Sync Sessions" %}

{% if not shown_sessions %}

{% 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 %} {% with shown_sessions|length as shown_count %} {# Translators: shown_count and total_sessions are integer variables; do not translate them! #} ({% blocktrans %}showing {{ shown_count }} of {{ total_sessions }}{% endblocktrans %}) {% endwith %} {% for sync_session in shown_sessions %} {% endfor %}
{% trans "Sync Date" %} {% trans "Device IP Address" %} {% trans "# Models Uploaded" %} {% trans "# Models Downloaded" %} {% trans "# Errors" %}
{{ sync_session.timestamp }} {{ sync_session.ip }} {{ sync_session.models_uploaded }} {{ sync_session.models_downloaded }} {{ sync_session.errors }}
{% endif %}
{% endblock control_panel_content %}