Wooey has a confusing setup with respect to Downloads. We will be implementing a "View Story" button in #26 which will make the existing Download
button redundant. We should remove the Download
button so that it does not confuse users.
The code to do so is here:
|
<div class="btn-group status-completed-toggle"> |
|
<a href="{{ job_info.archives.0.url }}" role="button" class="btn btn-primary"> |
|
<span class="glyphicon glyphicon-download-alt" aria-hidden="true"></span> {% trans "Download" %} |
|
</a> |
|
<button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" aria-expanded="false"> |
|
<span class="caret"></span> |
|
<span class="sr-only">{% trans "Toggle Dropdown" %}</span> |
|
</button> |
|
<ul class="dropdown-menu" role="menu"> |
|
{% for archive in job_info.archives %} |
|
<li><a href="{{ archive.url }}"><span class="glyphicon glyphicon-compressed"></span> {% if archive.url|endswith:"zip" %}.zip{% else %}.tar.gz{% endif %}</a></li> |
|
{% endfor %} |
|
</ul> |
|
</div> |