{% from "table_search.html" import table_search with context %} {% from "components/metadata_tables.html" import kv_table, resource_cost_table, collapsible_li, job_status_table %} {% from "utils.html" import batch_state_indicator, job_state_indicator, danger_button, submit_button, link, auto_refresh %} {% extends "layout.html" %} {% block title %}Batch {{ batch['id'] }}{% endblock %} {% block head %} {% endblock %} {% block content %}
{{ table_search("job-search", base_path ~ "/batches/" ~ batch["id"]) }}
{% for job in batch['jobs'] %} {% endfor %}
ID Name
{{ link(base_path ~ '/batches/' ~ job['batch_id'] ~ '/jobs/' ~ job['job_id'], job['job_id']) }}
{% if 'name' in job and job['name'] is not none %}
{{ link(base_path ~ '/batches/' ~ job['batch_id'] ~ '/jobs/' ~ job['job_id'], job['name']) }}
{% else %}
{{ link(base_path ~ '/batches/' ~ job['batch_id'] ~ '/jobs/' ~ job['job_id'], 'no name') }}
{% endif %}
{{ job_state_indicator(job) }}
{% if batch['jobs'] and batch['jobs'][0]['job_id'] is not none and batch['jobs'][0]['job_id'] > 1 %}
{% if q is not none %} {% endif %} {% if batch['jobs'][0]['job_id'] < 52 %} {% else %} {% endif %} {{ submit_button('Previous page') }}
{% endif %} {% if last_job_id is not none %}
{% if q is not none %} {% endif %} {{ submit_button('Next page') }}
{% endif %}
{% endblock %}