works on development - needs testing on production
This commit is contained in:
56
rowers/templates/async_tasks.html
Normal file
56
rowers/templates/async_tasks.html
Normal file
@@ -0,0 +1,56 @@
|
||||
{% 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 %}
|
||||
Reference in New Issue
Block a user