mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-08 12:56:27 +08:00
Fix download links in reports [SCI-5279]
This commit is contained in:
parent
a27c78e445
commit
c43851a2f4
2 changed files with 2 additions and 6 deletions
|
@ -31,9 +31,7 @@
|
||||||
<em>
|
<em>
|
||||||
<%= t("projects.reports.elements.result_asset.file_name",
|
<%= t("projects.reports.elements.result_asset.file_name",
|
||||||
file: truncate(asset.file_name, length: Constants::FILENAME_TRUNCATION_LENGTH)) %>
|
file: truncate(asset.file_name, length: Constants::FILENAME_TRUNCATION_LENGTH)) %>
|
||||||
<a href="<%= asset_download_url(asset) %>" class="download-link">
|
<%= link_to t('projects.reports.elements.download'), asset_download_url(asset, disposition: 'attachment'), class: 'download-link', target: :_blank %>
|
||||||
<%= t('projects.reports.elements.download') %>
|
|
||||||
</a>
|
|
||||||
</em>
|
</em>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -16,9 +16,7 @@
|
||||||
<em>
|
<em>
|
||||||
<%= t('projects.reports.elements.step_asset.file_name',
|
<%= t('projects.reports.elements.step_asset.file_name',
|
||||||
file: truncate(asset.file_name, length: Constants::FILENAME_TRUNCATION_LENGTH)) %>
|
file: truncate(asset.file_name, length: Constants::FILENAME_TRUNCATION_LENGTH)) %>
|
||||||
<a href="<%= asset_download_url(asset) %>" class="download-link">
|
<%= link_to t('projects.reports.elements.download'), asset_download_url(asset, disposition: 'attachment'), class: 'download-link', target: :_blank %>
|
||||||
<%= t('projects.reports.elements.download') %>
|
|
||||||
</a>
|
|
||||||
</em>
|
</em>
|
||||||
|
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
Loading…
Add table
Reference in a new issue