Image attachments are now sent inline to be viewed directly in the browser.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@642 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
1 parent
c4239a4fd2
commit
38e0c237a4
3 files changed
+10
-11
No files matched your search
@@ -163,7 +163,7 @@ module ApplicationHelper
|
||||
rf = Regexp.new(filename, Regexp::IGNORECASE)
|
||||
# search for the picture in attachments
|
||||
if found = attachments.detect { |att| att.filename =~ rf }
|
||||
image_url = url_for :controller => 'attachments', :action => 'show', :id => found.id
|
||||
image_url = url_for :controller => 'attachments', :action => 'download', :id => found.id
|
||||
"!#{align}#{image_url}!"
|
||||
else
|
||||
"!#{align}#{filename}!"
|
||||
|
||||
Reference in new issue
Block a user