diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-06-18 07:42:51 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-06-18 07:42:51 +0000 |
commit | 42e8ff4493e59b7fa7e54635e138522137654565 (patch) | |
tree | ce6a50bbeaa1d37645267dbaf984ef03a9253a2a /app/helpers/issues_helper.rb | |
parent | dc7402dea7abd051f1dfa2cd5cf758cf0827aa27 (diff) | |
download | redmine-42e8ff4493e59b7fa7e54635e138522137654565.tar.gz redmine-42e8ff4493e59b7fa7e54635e138522137654565.zip |
Add missing links to images in issue history (#22058).
git-svn-id: http://svn.redmine.org/redmine/trunk@15551 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers/issues_helper.rb')
-rw-r--r-- | app/helpers/issues_helper.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/helpers/issues_helper.rb b/app/helpers/issues_helper.rb index b43dc3e94..db9483274 100644 --- a/app/helpers/issues_helper.rb +++ b/app/helpers/issues_helper.rb @@ -451,7 +451,8 @@ module IssuesHelper atta = detail.journal.journalized.attachments.detect {|a| a.id == detail.prop_key.to_i} # Link to the attachment if it has not been removed value = link_to_attachment(atta, :download => true, :only_path => options[:only_path]) - if options[:only_path] != false && atta.is_text? + if options[:only_path] != false && (atta.is_text? || atta.is_image?) + value += ' ' value += link_to(l(:button_view), { :controller => 'attachments', :action => 'show', :id => atta, :filename => atta.filename }, |