mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-23 18:11:09 +00:00
Null state
This commit is contained in:
parent
d76eae358f
commit
fcd96c332d
1 changed files with 16 additions and 9 deletions
|
@ -55,14 +55,21 @@
|
||||||
<th>{% trans "Run time" %}</th>
|
<th>{% trans "Run time" %}</th>
|
||||||
<th>{% trans "Priority" %}</th>
|
<th>{% trans "Priority" %}</th>
|
||||||
</tr>
|
</tr>
|
||||||
{% for task in worker %}
|
{% if not worker %}
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ task.id }}</td>
|
<td colspan="4">
|
||||||
<td>{{ task.name|shortname }}</td>
|
<em>{% trans "No active tasks" %}</em>
|
||||||
<td>{{ task.time_start|runtime }}</td>
|
</td>
|
||||||
<td>{{ task.delivery_info.routing_key }}</td>
|
</tr>
|
||||||
</tr>
|
{% endif %}
|
||||||
{% endfor %}
|
{% for task in worker %}
|
||||||
|
<tr>
|
||||||
|
<td>{{ task.id }}</td>
|
||||||
|
<td>{{ task.name|shortname }}</td>
|
||||||
|
<td>{{ task.time_start|runtime }}</td>
|
||||||
|
<td>{{ task.delivery_info.routing_key }}</td>
|
||||||
|
</tr>
|
||||||
|
{% endfor %}
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
@ -72,7 +79,7 @@
|
||||||
<h2>{% trans "Workers" %}</h2>
|
<h2>{% trans "Workers" %}</h2>
|
||||||
|
|
||||||
{% for worker_name, worker in stats.items %}
|
{% for worker_name, worker in stats.items %}
|
||||||
<div class="box">
|
<div class="notification">
|
||||||
<h3>{{ worker_name }}</h3>
|
<h3>{{ worker_name }}</h3>
|
||||||
{% trans "Uptime:" %} {{ worker.uptime|uptime }}
|
{% trans "Uptime:" %} {{ worker.uptime|uptime }}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue