mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-14 21:24:54 +08:00
e3a7f45fdf
Conflicts: app/assets/javascripts/application.js app/views/results/_result_asset.html.erb app/views/steps/_step.html.erb
9 lines
447 B
Text
9 lines
447 B
Text
<% if can_view_or_download_result_assets(result.my_module) %>
|
|
<%= link_to download_asset_path(result.asset), data: {no_turbolink: true} do %>
|
|
<%= image_tag(preview_asset_path result.asset) if result.asset.is_image? %>
|
|
<p><%= truncate(result.asset.file_file_name, length: 50) %></p>
|
|
<% end %>
|
|
<% else %>
|
|
<%= image_tag(preview_asset_path result.asset) if result.asset.is_image? %>
|
|
<p><%= result.asset.file_file_name %></p>
|
|
<% end %>
|