Add download helper for dev process.

This commit is contained in:
Patrick Jentsch
2019-08-12 10:36:51 +02:00
parent e00d34ef81
commit fa2827608c
2 changed files with 25 additions and 5 deletions

View File

@ -72,7 +72,7 @@
</div>
<p>
{% for file in files %}
<a href="file://{{ files[file]['path'] }}" class="waves-effect waves-light btn-small">
<a href="{{ url_for('main.job_download', job_id=job.id, file=files[file]['path']) }}" class="waves-effect waves-light btn-small">
<i class="material-icons left">file_download</i>{{ file }}
</a>
{% endfor %}
@ -84,7 +84,7 @@
<p>
{% for file in files %}
{% for result in files[file]['results'] %}
<a href="file://{{ files[file]['results'][result]['path'] }}" class="waves-effect waves-light btn-small">
<a href="{{ url_for('main.job_download', job_id=job.id, file=files[file]['results'][result]['path']) }}" class="waves-effect waves-light btn-small">
<i class="material-icons left">file_download</i>{{ result }}
</a>
{% endfor %}