{% if not dataset.is_finished() and dataset.get_place_in_queue() > 0 %} {% if not no_icons %}{% endif %} In a queue{% if dataset.get_place_in_queue() > 0 %} (waiting for {{ dataset.get_place_in_queue() }} dataset{% if dataset.get_place_in_queue() != 1 %}s{% endif %} to finish). {% else %}, waiting for job to be started...{% endif %} {% elif not dataset.is_finished() %} {% if not no_icons %}{% endif %} {% elif dataset.is_finished() and not no_icons %} {% if dataset.num_rows == 0 %} No results. {% elif dataset.num_rows < 0 %} Error while capturing data. {% else %} {% endif %} {% endif %} {% if dataset.get_place_in_queue() <= 0 %} {% if dataset.get_status() %} {{ dataset.get_status() }}{% if dataset.get_status()[-1] != '.' %}.{% endif %} {% elif not dataset.is_finished() %} Creating dataset {% 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 %}