Skip to content
Snippets Groups Projects
Commit b11fce48 authored by Martin Mareš's avatar Martin Mareš
Browse files

Jobs: U nedokončených jobů nenabízíme třídění skenů

parent a0aac62e
Branches
No related tags found
No related merge requests found
...@@ -40,7 +40,7 @@ dávku po stažení výstupu smažete sami – šetří to místo na serveru. ...@@ -40,7 +40,7 @@ dávku po stažení výstupu smažete sami – šetří to místo na serveru.
<a class='btn btn-xs btn-primary' href='{{ url_for('org_job', id=j.job_id) }}'>Detail</a> <a class='btn btn-xs btn-primary' href='{{ url_for('org_job', id=j.job_id) }}'>Detail</a>
{% if j.out_file %} {% if j.out_file %}
<a class='btn btn-xs btn-primary' href='{{ url_for('org_job_output', id=j.job_id) }}'>Výsledek</a> <a class='btn btn-xs btn-primary' href='{{ url_for('org_job_output', id=j.job_id) }}'>Výsledek</a>
{% elif j.type == 'process_scans' and 'contest_id' in j.in_json and 'site_id' in j.in_json %} {% elif j.type == JobType.process_scans and j.state == JobState.done and 'contest_id' in j.in_json and 'site_id' in j.in_json %}
<a class='btn btn-xs btn-primary' href='{{ url_for('org_contest_scans_process', job_id=j.job_id, ct_id=j.in_json['contest_id'], site_id=j.in_json['site_id']) }}'>Roztřídit skeny</a> <a class='btn btn-xs btn-primary' href='{{ url_for('org_contest_scans_process', job_id=j.job_id, ct_id=j.in_json['contest_id'], site_id=j.in_json['site_id']) }}'>Roztřídit skeny</a>
{% endif %} {% endif %}
<input type="hidden" name="delete_job_id" value="{{ j.job_id }}"> <input type="hidden" name="delete_job_id" value="{{ j.job_id }}">
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment