{% extends "base.html" %} {% load static %} {% load crispy_forms_tags %} {% load url %} {% load guardian_tags %} {% load humanize %} {% load user_profile_link from profiles %} {% load naturaldelta %} {% block title %} Algorithm Image - {{ block.super }} {% endblock %} {% block breadcrumbs %} {% endblock %} {% block content %}

Algorithm Container Image

{% get_obj_perms request.user for object as "algorithm_image_perms" %} {% get_obj_perms request.user for object.algorithm as "algorithm_perms" %} {% if object.can_execute and "change_algorithmimage" in algorithm_image_perms %} Edit this algorithm image
{% endif %} {% if object.is_manifest_valid and not object.is_desired_version and "change_algorithm" in algorithm_perms %}
Activating an image will result in this image being used for future algorithm runs:
{% crispy image_activate_form %}
{% endif %} {% if object.can_execute and object.is_desired_version %} Active image for this algorithm{% else %} Inactive {% endif %}
ID
{{ object.pk }}
Algorithm
{{ object.algorithm.title }}
Creator
{{ object.creator|user_profile_link }}
Created
{{ object.created }}
{% if object.image %}
Image
{{ object.image.name }}
Image Size
{{ object.image.size|naturalsize }}
{% endif %} {% if object.image_sha256 %}
Image SHA256
{{ object.image_sha256 }}
{% endif %}
Import Status
{% if object.animate %} {% endif %} {{ object.get_import_status_display }}
{% if object.is_manifest_valid is not None %}
Image Is Valid
{{ object.is_manifest_valid }}
{% endif %} {% if object.status %}
Validation Errors
{{ object.status }}
{% endif %}
Image Can Be Used
{{ object.can_execute }}
Requires GPU
{{ object.requires_gpu }}
Requires Memory
{{ object.requires_memory_gb }} GB
Comment
{{ object.comment }}
{% if object.build %}

Build Info

Origin
{{ object.build.webhook_message.repo_name }}:{{ object.build.webhook_message.tag }}
Status
{% if object.build.animate %} {% endif %} {{ object.build.get_status_display }}
{% if object.build.build_log %}

Build Log

{# @formatter:off #}
{{ object.build.redacted_build_log }}
{# @formatter:on #} {% endif %} {% endif %} {% endblock %}