suitepro/app/views/attachments/other.html.erb
2020-11-22 21:20:06 +01:00

21 lines
757 B
Text

<%= render :layout => 'layouts/file' do %>
<% kind = if @attachment.is_video?
'video'
elsif @attachment.is_audio?
'audio'
end %>
<%= render :partial => "common/other",
:locals => {
:kind => kind,
:path => download_named_attachment_url(@attachment,
@attachment.filename),
:download_link => link_to_attachment(
@attachment,
:text => l(:label_no_preview_download),
:download => true,
:class => 'icon icon-download'
)
} %>
<% end %>