##// END OF EJS Templates
Merged r16285 (#24199)....
Jean-Philippe Lang -
r15912:46e11396b80b
parent child
Show More
@@ -197,7 +197,7 class AttachmentsController < ApplicationController
197 end
197 end
198
198
199 def disposition(attachment)
199 def disposition(attachment)
200 if attachment.is_image? || attachment.is_pdf?
200 if attachment.is_pdf?
201 'inline'
201 'inline'
202 else
202 else
203 'attachment'
203 'attachment'
@@ -443,7 +443,7 class RepositoriesController < ApplicationController
443 end
443 end
444
444
445 def disposition(path)
445 def disposition(path)
446 if Redmine::MimeType.is_type?('image', @path) || Redmine::MimeType.of(@path) == "application/pdf"
446 if Redmine::MimeType.of(@path) == "application/pdf"
447 'inline'
447 'inline'
448 else
448 else
449 'attachment'
449 'attachment'
General Comments 0
You need to be logged in to leave comments. Login now