{% load ui3_tags %}
{% if job.ui3_can_write %} {% endif %} #{{ job.id }} {% if not job.ui3_can_write %}read-only{% endif %}
{% if job.ui3_can_write %} {% if job.visibility != 0 %} {% endif %} {% if job.visibility != 2 %} {% endif %} {% if job.visibility != 1 %} {% endif %} {% if job.status != 0 and job.status != 1 and job.status != -1 %} {% endif %} {% endif %} {% if job.is_executable == 0 %} {% endif %} {% if job.ui3_shortcuts %}
{% for sc in job.ui3_shortcuts %} {% if sc.kind == "htmx-post" %} {% else %} {{ sc.label }} {% endif %} {% endfor %}
{% endif %}

{{ job.job_name }}

{% status_badge job job.ui3_step_command %}
{% if job.ui3_step_total and job.status == 1 or job.ui3_step_total and job.status == -3 %}
{{ job.resume|default:0|add:1 }}/{{ job.ui3_step_total }}
{% endif %}
Protocol {{ job.protocol.name }} {% if job.protocol_id %} {% endif %}
Workspace {% if job.locked or not job.ui3_can_write %} {{ job.workspace.name|default:"(none)" }} {% else %}
{% endif %}
Results
Parameters {% if job.status == 1 or job.locked or not job.ui3_can_write %}
{{ job.parameter|default:"(empty)" }}
{% else %} {% endif %}
Input files {% if job.status == 1 or job.locked or not job.ui3_can_write %}
{{ job.input_file|default:"(empty)" }}
{% else %} {% endif %}
{% if job.ui3_templated %}
Samples {% if job.status == 1 or job.locked or not job.ui3_can_write %}
{{ job.sample_sheet|default:"(from input files)" }}
{% else %} {% endif %}
{% endif %}
Array setting {% if job.locked or not job.ui3_can_write %} {% if job.array_setting %} {{ job.array_setting }} {% else %} (not set) {% endif %} {% elif job.array_setting %} {% else %} {% endif %}
Runner {% if job.locked or not job.ui3_can_write or job.status == 1 or job.status == -2 %} {{ job.slave.name|default:"(none)" }} {% else %}
{% endif %}
Created {{ job.create_time|date:"Y-m-d H:i" }}
Updated {{ job.update_time|date:"Y-m-d H:i" }}