{% extends 'base.html' %} {% load bootstrap %} {% block content %}

User {{ object }}

User ID {{ object.user_id }}
Short name {{ object.short_name }}
Long name {{ object.long_name }}
Device {% if perms.mdm.view_enrolleddevice %} {{ enrolled_device }} {% else %} {{ enrolled_device }} {% endif %}

{{ installed_artifacts_count }} Artifact{{ installed_artifacts_count|pluralize }}

{% if installed_artifacts_count %} {% for installed_artifact in installed_artifacts %} {% with installed_artifact.artifact_version as artifact_version %} {% with artifact_version.artifact as artifact %} {% endwith %} {% endwith %} {% endfor %}
Type Artifact Version Status Last updated
{{ artifact.get_type_display }} {% if perms.mdm.view_artifact %} {{ artifact }} {% else %} {{ artifact }} {% endif %} {% if perms.mdm.view_artifact %} {{ artifact_version.version }} {% else %} {{ artifact_version.version }} {% endif %} {{ installed_artifact.get_status_display }} {{ installed_artifact.updated_at|date:"SHORT_DATETIME_FORMAT" }}
{% endif %}

Last commands

{% if perms.mdm.change_enrolleduser %}
{% csrf_token %}
{% endif %} {% if commands_count %} {% for command in commands %} {% endfor %}
Name Artifact Time Result time Status
{{ command.name }} {% if command.artifact_version %} {% if perms.mdm.view_artifactversion %} {{ command.artifact_version }} {% else %} {{ command.artifact_version }} {% endif %} {% else %} - {% endif %} {% if command.time %} {{ command.time|date:"SHORT_DATETIME_FORMAT" }} {% else %} Queued since {{ command.created_at|date:"SHORT_DATETIME_FORMAT" }} {% endif %} {{ command.result_time|date:"SHORT_DATETIME_FORMAT"|default:"-" }} {{ command.get_status_display }}
{% endif %} {% endblock %}