Show queued tasks
This commit is contained in:
parent
2c0a496897
commit
ad5da60b5a
8 changed files with 180 additions and 25 deletions
|
|
@ -1,8 +1,8 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}queue{% endblock %}
|
||||
{% block title %}queue ({{ table.tasks.len() }}){% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<h2>Queue</h2>
|
||||
<p>Sorry, nothing here yet.</p>
|
||||
<h2>Queue ({{ table.tasks.len() }})</h2>
|
||||
{{ table|safe }}
|
||||
{% endblock %}
|
||||
|
|
|
|||
18
templates/queue_table.html
Normal file
18
templates/queue_table.html
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
<table class="queue">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>commit</th>
|
||||
<th>since</th>
|
||||
<th>prio</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for task in tasks %}
|
||||
<tr {% if task.priority % 2==1 %}class="odd" {% endif %}>
|
||||
<td><a href="{{ task.id }}">{{ task.short }}</a></td>
|
||||
<td>{{ task.since }}</td>
|
||||
<td>{{ task.priority }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
Loading…
Add table
Add a link
Reference in a new issue