mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-29 11:45:18 +08:00
truncate asset name in task step and result [fixes SCI-294]
This commit is contained in:
parent
072f816286
commit
6bb8d075e0
2 changed files with 3 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
|||
<% if can_view_or_download_result_assets(result.my_module) %>
|
||||
<%= link_to image_tag(preview_asset_path result.asset),
|
||||
download_asset_path(result.asset), data: {no_turbolink: true} if result.asset.is_image? %>
|
||||
<p><%= link_to result.asset.file_file_name, download_asset_path(result.asset), data: {no_turbolink: true} %></p>
|
||||
<p><%= link_to truncate(result.asset.file_file_name, length: 50), download_asset_path(result.asset), data: {no_turbolink: true} %></p>
|
||||
<% else %>
|
||||
<%= image_tag(preview_asset_path result.asset) if result.asset.is_image? %>
|
||||
<p><%= result.asset.file_file_name %></p>
|
||||
|
|
|
@ -80,7 +80,7 @@
|
|||
<%= image_tag preview_asset_path(asset) %>
|
||||
<% end %>
|
||||
<%= raw '<br>' if asset.is_image? %>
|
||||
<span><%= asset.file_file_name %></span>
|
||||
<span><%= truncate( asset.file_file_name, length: 50 ) %></span>
|
||||
<% end %>
|
||||
<% else %>
|
||||
<%= asset_loading_span(asset) %>
|
||||
|
@ -88,7 +88,7 @@
|
|||
<% else %>
|
||||
<%= image_tag preview_asset_path(asset) if asset.is_image? %>
|
||||
<%= raw '<br>' if asset.is_image? %>
|
||||
<span><%= asset.file_file_name %></span>
|
||||
<span><%= truncate( asset.file_file_name, length: 50 )%></span>
|
||||
<% end %>
|
||||
</li>
|
||||
<% end %>
|
||||
|
|
Loading…
Reference in a new issue