mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-10 17:36:33 +08:00
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:
commit
9a9618b506
2 changed files with 2 additions and 6 deletions
|
@ -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>
|
||||
|
|
|
@ -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 %>
|
||||
|
|
Loading…
Reference in a new issue