Redmine 4.1.1
This commit is contained in:
parent
33e7b881a5
commit
3d976f1b3b
1593 changed files with 36180 additions and 19489 deletions
|
@ -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 %>
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<%= render :layout => 'layouts/file' do %>
|
||||
|
||||
<%= render :partial => 'common/file', :locals => {:content => @content, :filename => @attachment.filename} %>
|
||||
<%= render_file_content(@attachment, @content) %>
|
||||
<% end %>
|
||||
|
|
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue