mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-06 06:56:54 +08:00
add file name to loading image
This commit is contained in:
parent
38869ec037
commit
4bc01c44e9
1 changed files with 7 additions and 0 deletions
|
@ -3,6 +3,13 @@
|
||||||
<span data-status='asset-loading'
|
<span data-status='asset-loading'
|
||||||
data-present-url='<%= file_present_asset_path(asset.id) %>'>
|
data-present-url='<%= file_present_asset_path(asset.id) %>'>
|
||||||
<%= image_tag 'medium/processing.gif' %>
|
<%= image_tag 'medium/processing.gif' %>
|
||||||
|
<%= link_to download_asset_path(asset),
|
||||||
|
class: 'file-preview-link',
|
||||||
|
id: "modal_link#{asset.id}",
|
||||||
|
data: { no_turbolink: true, id: true, status: 'asset-present', 'preview-url': asset_file_preview_path(asset) } do %>
|
||||||
|
<p><%= truncate(asset.file_file_name,
|
||||||
|
length: Constants::FILENAME_TRUNCATION_LENGTH) %></p>
|
||||||
|
<% end %>
|
||||||
</span>
|
</span>
|
||||||
<% else %>
|
<% else %>
|
||||||
<%= link_to download_asset_path(asset),
|
<%= link_to download_asset_path(asset),
|
||||||
|
|
Loading…
Reference in a new issue