58 lines
1.2 KiB
HTML
58 lines
1.2 KiB
HTML
{% extends "base.html" %}
|
|
{% load staticfiles %}
|
|
{% load rowerfilters %}
|
|
|
|
{% block title %}Rowsandall - Tasks {% endblock %}
|
|
|
|
{% block content %}
|
|
|
|
|
|
<h1>Your Tasks Status</h1>
|
|
<p>Manage the asynchronous tasks running for you</p>
|
|
|
|
|
|
<div class="grid_12 alpha">
|
|
<table width="100%" class="listtable shortpadded">
|
|
<thead>
|
|
<tr>
|
|
<th>ID</th>
|
|
<th style="width:180">Task</th>
|
|
<th>Status</th>
|
|
<th>Action</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for task in taskstatus %}
|
|
<tr>
|
|
<td>
|
|
{{ task|lookup:'id' }}
|
|
</td>
|
|
<td>
|
|
{{ task|lookup:'verbose' }}
|
|
</td>
|
|
<td>
|
|
{{ task|lookup:'status' }}
|
|
</td>
|
|
{% if task|lookup:'failed' %}
|
|
<td>
|
|
<a href="/rowers/job-kill/{{ task|lookup:'id' }}" class="button red small">Remove</a>
|
|
</td>
|
|
{% elif task|lookup:'finished' %}
|
|
<td>
|
|
<a href="/rowers/job-kill/{{ task|lookup:'id' }}" class="button green small">Remove</a>
|
|
</td>
|
|
{% else %}
|
|
<td>
|
|
|
|
</td>
|
|
{% endif %}
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
|
|
|
|
{% endblock %}
|