Redmine 4.1.1

This commit is contained in:
Manuel Cillero 2020-11-22 21:20:06 +01:00
parent 33e7b881a5
commit 3d976f1b3b
1593 changed files with 36180 additions and 19489 deletions

View file

@ -1,4 +1,6 @@
<h2><%= l(:label_edit_attachments) %></h2>
<h2>
<%= safe_join([link_to_attachment_container(@container), l(:label_edit_attachments)].compact, ' » ') %>
</h2>
<%= error_messages_for *@attachments %>

View file

@ -1,4 +1,4 @@
<%= render :layout => 'layouts/file' do %>
&nbsp;
<%= render :partial => 'common/file', :locals => {:content => @content, :filename => @attachment.filename} %>
<%= render_file_content(@attachment, @content) %>
<% end %>

View file

@ -1,6 +1,16 @@
<%= render :layout => 'layouts/file' do %>
<%= render :partial => 'common/other',
<% 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),