Skip to content

Commit 56eb4f3

Browse files
committed
update html [no ci]
1 parent faf6d7c commit 56eb4f3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

qiita_pet/templates/study_ajax/prep_summary.html

+4-2
Original file line numberDiff line numberDiff line change
@@ -447,8 +447,10 @@ <h4>
447447
{% end %}
448448
{% if editable %}
449449
<br/>
450-
{% if user_level in ('admin', 'wet-lab admin') %}
451-
<a class="btn btn-info" href="{% raw qiita_config.portal_dir %}/download_data_release_from_prep/{{prep_id}}"><span class="glyphicon glyphicon-download-alt"></span> Dowload Data Release</a>
450+
{% if user_level in ('admin', 'wet-lab admin') and data_type in {'Metagenomic', 'Metatranscriptomic'} %}
451+
<button class="btn btn-info" onclick="this.disabled=true; window.location='{% raw qiita_config.portal_dir %}/download_data_release_from_prep/{{prep_id}}';">
452+
<span class="glyphicon glyphicon-download-alt"></span> Dowload Data Release
453+
</button>
452454
{% end %}
453455
{% if deprecated %}
454456
<a class="btn btn-warning" onclick="deprecate_preparation({{prep_id}}, false);"><span class="glyphicon glyphicon-pushpin"></span> Remove Deprecation</a>

0 commit comments

Comments
 (0)