add file name to loading image

This commit is contained in:
zmagod 2018-05-10 10:37:48 +02:00
parent 38869ec037
commit 4bc01c44e9

View file

@ -3,6 +3,13 @@
<span data-status='asset-loading'
data-present-url='<%= file_present_asset_path(asset.id) %>'>
<%= 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>
<% else %>
<%= link_to download_asset_path(asset),