2021-05-27 11:46:30 +02:00
|
|
|
{% extends "base.html.twig" %}
|
|
|
|
{% block title %}Overview of run for {{ job.name }}{% endblock %}
|
|
|
|
{% block content %}
|
2022-01-06 16:58:26 +01:00
|
|
|
<h2>Overview of runs for <span class="job-name">{{ job.name | parsetags | raw }}</span></h2>
|
2021-05-27 11:46:30 +02:00
|
|
|
<p>
|
|
|
|
<a href="{{ path('job_edit', { id: job.id }) }}">Edit job</a>
|
|
|
|
{% if allruns %} | <a href="{{ path('job_view', { id: job.id })}}">Only show failed runs</a>
|
|
|
|
{% elseif not allruns %} | <a href="{{ path('job_view', { id: job.id, all: 'all' })}}">Show all runs</a>
|
|
|
|
{% endif %}
|
|
|
|
</p>
|
|
|
|
<div id="runs" class="accordion">
|
|
|
|
{% for run in runs %}
|
2021-07-20 18:54:07 +02:00
|
|
|
<div class="accordion-item">
|
|
|
|
<div class="accordion-header" id="run-{{ run.id }}-header">
|
2021-12-01 11:34:41 +01:00
|
|
|
<button class="accordion-button{% if loop.index != 1 %} collapsed{% endif %}" type="button" data-bs-toggle="collapse" data-bs-target="#run-{{ run.id }}" aria-expanded="{% if loop.index != 1 %}true{% else %}false{% endif %}" aria-controls="run-{{ run.id }}">
|
2021-07-20 18:54:07 +02:00
|
|
|
<div>
|
|
|
|
<div class="d-md-inline d-block text-left">{{ run.timestamp | date("d/m/Y H:i:s") }}</div>
|
2022-01-26 15:34:32 +01:00
|
|
|
<div class="d-md-inline d-block text-left">(exit code: {{ run.exitcode }} | runtime: {{ run.runtime | interval }})</div>
|
2021-07-20 18:54:07 +02:00
|
|
|
{% if 'M' in run.flags %}
|
|
|
|
<div class="d-md-inline d-block text-left">Manual Run</div>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</button>
|
2021-05-27 11:46:30 +02:00
|
|
|
</div>
|
2021-12-01 11:34:41 +01:00
|
|
|
<div id="run-{{ run.id }}" class="accordion-collapse collapse{% if loop.index == 1%} show{% endif %}" aria-labelledby="run-{{ run.id }}-header" data-bs-parent="#runs">
|
2021-07-20 18:54:07 +02:00
|
|
|
<div class="accordion-body">
|
2021-05-27 11:46:30 +02:00
|
|
|
<pre>{{ run.output }}</pre>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% else %}
|
|
|
|
<h4>No {% if not allruns %}failed {% endif %}runs found</h4>
|
|
|
|
<p><a href="{{ path('job_view', { id: job.id, all: 'all' })}}">Show all runs</a></p>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block styles %}
|
2022-05-02 13:25:50 +02:00
|
|
|
{{ vite_entry_link_tags('job.view') }}
|
2021-05-27 11:46:30 +02:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block scripts %}
|
2022-05-02 13:25:50 +02:00
|
|
|
{{ vite_entry_script_tags('job.view') }}
|
2021-05-27 11:46:30 +02:00
|
|
|
{% endblock %}
|