Skip to content

Commit

Permalink
Better datasets status
Browse files Browse the repository at this point in the history
  • Loading branch information
stijn-uva committed Oct 9, 2023
1 parent ec2104e commit 22d988a
Showing 1 changed file with 12 additions and 15 deletions.
27 changes: 12 additions & 15 deletions webtool/templates/components/result-status.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
{% if not dataset.is_finished() %}
{% if dataset.queue_position >= 0 %}
{% if not no_icons %}<i class="fas fa-hourglass-half" aria-label="Query in progress..."></i>{% endif %} In a queue{% if dataset.queue_position > 0 %}
(waiting for {{ dataset.queue_position }} dataset{% if dataset.queue_position != 1 %}s{% endif %} to finish).
{% else %}, waiting for other datasets to finish...{% endif %}
{% else %}
{% if not dataset.is_finished() and dataset.queue_position > 0 %}
{% if not no_icons %}<i class="fas fa-hourglass-half" aria-label="Query in progress..."></i>{% endif %} In a queue{% if dataset.queue_position > 0 %}
(waiting for {{ dataset.queue_position }} dataset{% if dataset.queue_position != 1 %}s{% endif %} to finish).
{% else %}, waiting for job to be started...{% endif %}
{% elif not dataset.is_finished() %}
{% if not no_icons %}<i class="fas fa-arrow-down scroll" aria-label="Query in progress..."></i>{% endif %}
{% endif %}
{% endif %}
{% if dataset.is_finished() and not no_icons %}
{% elif dataset.is_finished() and not no_icons %}
{% if dataset.num_rows == 0 %}
<i class="fa fa-skull" aria-hidden="true"></i> <em>No results.</em>
{% elif dataset.num_rows < 0 %}
Expand All @@ -17,10 +14,10 @@
{% endif %}
{% endif %}
{% if dataset.queue_position <= 0 %}
{% if dataset.get_status() %}
{{ dataset.get_status() }}{% if dataset.get_status()[-1] != '.' %}.{% endif %}
{% endif %}
{% if dataset.is_finished() and dataset.num_rows > 0 %}
{{ dataset.num_rows|commafy }} item{% if dataset.num_rows != 1 %}s{% endif %} captured.
{% endif %}
{% if dataset.get_status() %}
{{ dataset.get_status() }}{% if dataset.get_status()[-1] != '.' %}.{% endif %}
{% endif %}
{% if dataset.is_finished() and dataset.num_rows > 0 %}
{{ dataset.num_rows|commafy }} item{% if dataset.num_rows != 1 %}s{% endif %} captured.
{% endif %}
{% endif %}

0 comments on commit 22d988a

Please sign in to comment.