remove queue waiting bar completely, it never really worked out well anyway

django-3.2
Hartmut Holzgraefe 2023-09-29 05:58:13 +00:00
rodzic 96e65cec59
commit 9389d5082f
2 zmienionych plików z 1 dodań i 11 usunięć

Wyświetl plik

@ -40,16 +40,6 @@
<div style="height: 2em"></div>
{% if map.is_waiting %}
<div class="progress">
<div id="queue-progress" class="progress-bar progress-bar-striped progress-bar-animated"" role="progressbar"
style="width: {{ progress }}%" aria-valuenow="{{ progress }}" aria-valuemin="0" aria-valuemax="100">
<span class="text-dark font-weight-bold">{{ map.current_position_in_queue }} {% trans "jobs ahead of us" %}</span>
</div>
</div>
{% endif %}
{% if map.is_waiting %}
<i class="fas fa-hourglass"></i> {% trans "Pending..." %}
{% endif %}

Wyświetl plik

@ -28,7 +28,7 @@ def _lastline(filename):
@register.filter()
def job_status_to_str(value):
if value.status == 0:
return mark_safe(_alert_info + str(_("Waiting for rendering to begin...")) + _alert_end)
return mark_safe(_alert_info + str(_("Waiting for rendering to begin, %d jobs still ahead of us") % value.current_position_in_queue()) + _alert_end)
elif value.status == 1:
return mark_safe(_alert_info + str(_("The rendering is in progress...")) + _alert_end)
elif value.status == 2: