{% extends 'base.html' %} {% load ui_extras %} {% load inventory_extras %} {% block content %}

{{ object }}

Artifact

{% if perms.mdm.change_artifact %} {% url 'mdm:update_artifact' object.pk as url %} {% button 'UPDATE' url "Edit Artifact" %} {% endif %} {% if perms.mdm.delete_artifact and object.can_be_deleted %} {% url 'mdm:delete_artifact' object.pk as url %} {% button 'DELETE' url "Delete Artifact" %} {% endif %}
{% if enterpriseapp_list %} {% with enterpriseapp_list|first as enterprise_app %} {% include "mdm/_enterprise_app_detail.html" %} {% endwith %} {% endif %} {% if profile_list %} {% with profile_list|first as profile %} {% include "mdm/_profile_detail.html" %} {% endwith %} {% endif %} {% if storeapp_list %} {% with storeapp_list|first as store_app %} {% include "mdm/_store_app_detail.html" %} {% endwith %} {% endif %}
Type {{ object.get_type_display }}
Channel {{ object.channel }}
Platform{{ object.platforms|length|pluralize }} {{ object.platforms|join:", "|default:"-" }}
Depends on {% for required_artifact in object.requires.all %} {{ required_artifact }}{% if not forloop.last %}, {% endif %} {% empty %} - {% endfor %}
Install during setup assistant {{ object.install_during_setup_assistant|yesno }}
Auto update {{ object.auto_update|yesno }}
Reinstall interval {% if not object.reinstall_interval %} Never {% else %} {{ object.reinstall_interval }} day{{ object.reinstall_interval|pluralize }} {% endif %}
Reinstall on OS update {{ object.get_reinstall_on_os_update_display }}
{% created_updated_at object %}
{% if versions_count %}

Version{{ versions_count|pluralize }} ({{ versions_count }})

{% if upgrade_link %} {% button 'CREATE' upgrade_link "Add new Version" %} {% endif %}
{% for av in versions %} {% endfor %}
Version Platforms Excl. tags Def. shard Tag shards
{% if perms.mdm.view_artifactversion %} {{ av.version }} {% else %} {{ av.version }} {% endif %} {% if av.platforms %}
    {% for platform, versions in av.platforms.items %}
  • {% if versions.min %}{{ versions.min }} ≤ {% endif %}{{ platform }}{% if versions.max %} < {{ versions.max }}{% endif %}
  • {% endfor %}
{% else %} - {% endif %}
{% for tag in av.excluded_tags.all %} {% inventory_tag tag %} {% empty %} - {% endfor %} {{ av.default_shard }}/{{ av.shard_modulo }} {% if av.tag_shards %} {% for tag_shard in av.tag_shards %} {% endfor %}
{% inventory_tag tag_shard.tag %}{{ tag_shard.shard }}
{% else %} - {% endif %}
{% if perms.mdm.view_artifactversion %} {% if artifact.type == "Profile" %} {% url 'mdm:download_profile' av.pk as url %} {% button 'DOWNLOAD' url "Download Profile" %} {% endif %} {% if artifact.type == "Enterprise App" %} {% url 'mdm:download_enterprise_app' av.pk as url %} {% button 'DOWNLOAD' url "Download Enterprise App" %} {% endif %} {% endif %} {% if perms.mdm.change_artifactversion %} {% url 'mdm:update_artifact_version' object.pk av.pk as url %} {% button 'UPDATE' url "Edit Version" %} {% endif %} {% if perms.mdm.delete_artifactversion and av.can_be_deleted %} {% url 'mdm:delete_artifact_version' object.pk av.pk as url %} {% button 'DELETE' url "Delete Version" %} {% endif %}
{% endif %}

Blueprint{{ blueprint_artifacts_count|pluralize }} ({{ blueprint_artifacts_count }})

{% if perms.mdm.add_blueprintartifact %} {% url 'mdm:create_blueprint_artifact' object.pk as url %} {% button 'CREATE' url "Add new Blueprint" %} {% endif %}
{% if blueprint_artifacts_count %} {% for ba in blueprint_artifacts %} {% endfor %}
Name Platforms Excl. tags Def. shard Tag shards
{% if perms.mdm.view_blueprint %} {{ ba.blueprint }} {% else %} {{ ba.blueprint }} {% endif %} {% if ba.platforms %}
    {% for platform, versions in ba.platforms.items %}
  • {% if versions.min %}{{ versions.min }} ≤ {% endif %}{{ platform }}{% if versions.max %} < {{ versions.max }}{% endif %}
  • {% endfor %}
{% else %} - {% endif %}
{% for tag in ba.excluded_tags.all %} {% inventory_tag tag %} {% empty %} - {% endfor %} {{ ba.default_shard }}/{{ ba.shard_modulo }} {% if ba.tag_shards %} {% for tag_shard in ba.tag_shards %} {% endfor %}
{% inventory_tag tag_shard.tag %}{{ tag_shard.shard }}
{% else %} - {% endif %}
{% if perms.mdm.change_blueprintartifact %} {% url 'mdm:update_blueprint_artifact' object.pk ba.pk as url %} {% button 'UPDATE' url "Edit Blueprint" %} {% endif %} {% if perms.mdm.delete_blueprintartifact %} {% url 'mdm:delete_blueprint_artifact' object.pk ba.pk as url %} {% button 'DELETE' url "Delete Blueprint" %} {% endif %}
{% endif %} {% endblock %}