Skip to content
Snippets Groups Projects
Commit 83d6839f authored by Stephan Porada's avatar Stephan Porada :speech_balloon:
Browse files

Add new results table view

parent bafa522e
No related branches found
No related tags found
No related merge requests found
...@@ -198,30 +198,42 @@ ...@@ -198,30 +198,42 @@
</div> </div>
<span class="card-title">Files</span> <span class="card-title">Files</span>
<table> <div style="overflow-x:auto;">
<table class="highlight">
<thead> <thead>
<tr> <tr>
<th style="width: 50%;">Inputs</th> <th style="width: 25%;">Inputs</th>
<th style="width: 50%;">Results</th> <th style="width: 25%;"></th>
<th style="width: 25%;">Results</th>
<th style="width: 25%;"></th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
{% for file in files %} {% for file in files %}
<tr>
<td rowspan="4">
{{ file }}
</td>
<td rowspan="4">
<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>Download</a>
</td>
</tr>
{% for result in files[file]['results'] %}
<tr> <tr>
<td> <td>
<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> {{ result }}
</td> </td>
<td> <td>
{% if job.status == 'complete' %} {% if job.status == 'complete' %}
{% for result in files[file]['results'] %} <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>Download</a>
<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 %}
{% endif %} {% endif %}
</td> </td>
</tr> </tr>
{% endfor %} {% endfor %}
{% endfor %}
</tbody> </tbody>
</table> </table>
</div>
</div> </div>
</div> </div>
</div> </div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment