31 lines
1.0 KiB
HTML
31 lines
1.0 KiB
HTML
{% load i18n passerelle %}
|
|
{% load tz %}
|
|
|
|
{% if jobs %}
|
|
<table class="main" data-job-base-url="{% url 'view-jobs-connector' connector=object.get_connector_slug slug=object.slug %}" >
|
|
<thead>
|
|
<th>{% trans 'Creation Timestamp' %}</th>
|
|
<th>{% trans 'Update Timestamp' %}</th>
|
|
<th>{% trans 'Done Timestamp' %}</th>
|
|
<th>{% trans 'Type' %}</th>
|
|
<th>{% trans 'Status' %}</th>
|
|
</thead>
|
|
<tbody>
|
|
{% for job in jobs %}
|
|
<tr data-pk="{{ job.pk }}" {% if job.status == 'failed' %}class="error"{% endif %}>
|
|
<td class="timestamp">{{ job.creation_timestamp|localtime }}</td>
|
|
<td class="timestamp">{{ job.update_timestamp|localtime }}</td>
|
|
<td class="timestamp">{{ job.done_timestamp|localtime }}</td>
|
|
<td>{{ job.method_name }}</td>
|
|
<td class="message">{{ job.get_status_display }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
|
|
{% with page_obj=jobs %}
|
|
{% include "gadjo/pagination.html" with anchor="#jobs" without_key="job_id" %}
|
|
{% endwith %}
|
|
|
|
{% endif %}
|