Skip to content
Snippets Groups Projects

Resolve "Add overview page for celery task results"

Merged Tom Teichler requested to merge 223-add-overview-page-for-celery-task-results into master
Files
2
@@ -62,4 +62,68 @@
</div>
</div>
</div>
{% if tasks %}
<div class="card">
<div class="card-content">
<span class="card-title"> {% blocktrans %}Celery task results{% endblocktrans %}</span>
<table>
<thead>
<tr>
<th>{% trans "Task" %}</th>
<th>{% trans "ID" %}</th>
<th>{% trans "Date done" %}</th>
<th>{% trans "Status" %}</th>
</tr>
</thead>
<tbody>
{% for task in tasks %}
{% if task != None %}
<tr>
<td>{{ task.task_name }}</td>
<td>{{ task.task_id }}</td>
<td>{{ task.date_done }}</td>
<td>
{% if task.status == "PENDING" %}
<a class="tooltipped" data-position="top"
data-tooltip="{{ task.status }}">
<i class="material-icons orange-text">hourglass_empty</i>
</a>
{% elif task.status == "STARTED" %}
<a class="tooltipped" data-position="top"
data-tooltip="{{ task.status }}">
<i class="material-icons orange-text">directions_run</i>
</a>
{% elif task.status == "SUCCESS" %}
<a class="tooltipped" data-position="top"
data-tooltip="{{ task.status }}">
<i class="material-icons green-text">done</i>
</a>
{% elif task.status == "FAILURE" %}
<a class="tooltipped" data-position="top"
data-tooltip="{{ task.status }}">
<i class="material-icons red-text">error</i>
</a>
{% elif task.status == "RETRY" %}
<a class="tooltipped" data-position="top"
data-tooltip="{{ task.status }}">
<i class="material-icons orange-text">hourglass_full</i>
</a>
{% elif task.status == "REVOKED" %}
<a class="tooltipped" data-position="top"
data-tooltip="{{ task.status }}">
<i class="material-icons red-text">clear</i>
</a>
{% endif %}
</td>
</tr>
{% endif %}
{% endfor %}
</tbody>
</table>
</div>
</div>
{% endif %}
{% endblock %}
Loading