{% macro job_table(jobs, id, searchBarId) %} {% block head %} {% endblock %}
{% for job in jobs %} {% endfor %}
id name state exit_code duration
{{ job['job_id'] }} {{ job['name'] }} {{ job['state'] }} {% if 'exit_code' in job and job['exit_code'] is not none %} {% if job['exit_code'] == 0 %} Success 🎉 {% else %} Failure 🤷‍♀️ ({{ job['exit_code'] }}) {% endif %} {% endif %} {% if 'duration' in job and job['duration'] %} {{ job['duration'] }} {% endif %}
{% endmacro %}