Merge pull request #2991 from aignatov-bio/ai-sci-5279-fix-download-links-in-report

Fix download links in reports [SCI-5279]
This commit is contained in:
aignatov-bio 2020-12-03 12:47:37 +01:00 committed by GitHub
commit 9a9618b506
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 6 deletions

View file

@ -31,9 +31,7 @@
<em>
<%= t("projects.reports.elements.result_asset.file_name",
file: truncate(asset.file_name, length: Constants::FILENAME_TRUNCATION_LENGTH)) %>
<a href="<%= asset_download_url(asset) %>" class="download-link">
<%= t('projects.reports.elements.download') %>
</a>
<%= link_to t('projects.reports.elements.download'), asset_download_url(asset, disposition: 'attachment'), class: 'download-link', target: :_blank %>
</em>
<% end %>
</div>

View file

@ -16,9 +16,7 @@
<em>
<%= t('projects.reports.elements.step_asset.file_name',
file: truncate(asset.file_name, length: Constants::FILENAME_TRUNCATION_LENGTH)) %>
<a href="<%= asset_download_url(asset) %>" class="download-link">
<%= t('projects.reports.elements.download') %>
</a>
<%= link_to t('projects.reports.elements.download'), asset_download_url(asset, disposition: 'attachment'), class: 'download-link', target: :_blank %>
</em>
<% end %>