{% load define_action %} {% load format %} {% load workspecification %}
{% if group is None %} {% else %} {% endif %}
{% can_be_viewed_by specification user as can_be_viewed %} {% if can_be_viewed %} {{ specification.id }} {% else %} {{ specification.id }} {% endif %}
{{ specification.created_by }}
{% include 'lofardata/partial_templates/badges.html' with status=specification.submission_status label=specification.get_submission_status_display %}
{{ specification.selected_workflow }}
{% if specification.atdb_task_ids %} {% else %}
-
{% endif %}
{% format_size specification.get_file_info.0 %}
{% if specification.batch_size > 0 %} {% format_size specification.get_file_info.2 %} {% else %} {% format_size specification.get_file_info.0 %} {% endif %}
{{ specification.get_file_info.1 }}
{% if specification.batch_size > 0 %} {{ specification.batch_size }} {% else %} {{ specification.get_file_info.1 }} {% endif %}
{% if specification.batch_size > 0 %} {% elif specification.get_file_info.2 > 8000000000 and specification.get_file_info.1 > 1 %} {% else %} {% endif %}
{% if specification.successor.count %} {% for successor in specification.successor.all %} {{ successor.pk }} {% if not forloop.last %}, {% endif %} {% endfor %} {% else %}
-
{% endif %}
{% if specification.predecessor_specification %} {{ specification.predecessor_specification.pk }} {% else %}
-
{% endif %}
{% can_be_edited_by specification user as can_be_edited %} {% if not can_be_edited %} {% elif not specification.is_editable %} {% if specification.submission_status == 'L' %} {% else %} {% endif %} {% else %} {% endif %} {% if not can_be_edited %} {% elif specification.successor.count %} {% else %} {% endif %}
{% csrf_token %} {% can_be_submitted_by specification user as can_be_submitted %} {% if not can_be_submitted %} {% elif not specification.is_editable %} {% if specification.submission_status == 'L' %} {% else %} {% endif %} {% elif specification.inputs.surls|length == 0 %} {% else %} {% endif %}