Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
{% macro JobQueue(jobs) %}
<nav class="panel has-background-white">
- {% set i = 0 %}
-
{% for job in jobs %}
<a class="panel-block is-block {% if job.is_running() %}is-active{% endif %}"
href="/builds/{{ job.build.uuid }}">
{% endif %}
</a>
- {% set i = i + 1 %}
- {% endfor %}
-
{# Show a message if there were no jobs #}
- {% if i == 0 %}
+ {% else %}
<div class="notification has-text-centered">
{{ _("The job queue is empty") }}
</div>
- {% endif %}
+ {% endfor %}
</nav>
{% endmacro %}