Null state

This commit is contained in:
Mouse Reeve 2022-09-15 11:09:07 -07:00
parent d76eae358f
commit fcd96c332d

View file

@ -55,6 +55,13 @@
<th>{% trans "Run time" %}</th> <th>{% trans "Run time" %}</th>
<th>{% trans "Priority" %}</th> <th>{% trans "Priority" %}</th>
</tr> </tr>
{% if not worker %}
<tr>
<td colspan="4">
<em>{% trans "No active tasks" %}</em>
</td>
</tr>
{% endif %}
{% for task in worker %} {% for task in worker %}
<tr> <tr>
<td>{{ task.id }}</td> <td>{{ task.id }}</td>
@ -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>