Files
Redmine/app/views/attachments/other.html.erb
Marius Balteanu 955d508588 Replaces legacy other download icon with SVG icon (#42953).
Patch by Mizuki ISHIKAWA (user:ishikawa999).

git-svn-id: https://svn.redmine.org/redmine/trunk@23852 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-07-04 05:09:01 +00:00

23 lines
813 B
Plaintext

<%= 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),
:icon => 'download',
:download => true,
:class => 'icon icon-download'
)
} %>
<% end %>