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

@ -17,8 +17,15 @@
<% elsif @content %>
<%= render :partial => 'common/file', :locals => {:filename => @path, :content => @content} %>
<% else %>
<% kind = if Redmine::MimeType.is_type?('video', @path)
'video'
elsif Redmine::MimeType.is_type?('audio', @path)
'audio'
end %>
<%= render :partial => 'common/other',
:locals => {
:path => (url_for(params.merge(:action => 'raw')) if @allow_download),
:kind => kind,
:download_link => @repository.supports_cat? ? link_to(
l(:label_no_preview_download),
{ :action => 'raw', :id => @project,
@ -28,6 +35,10 @@
:class => 'icon icon-download') : nil } %>
<% end %>
<span class="pagination filepreview">
<%= render_pagination %>
</span>
<% content_for :header_tags do %>
<%= stylesheet_link_tag "scm" %>
<% end %>