From: Jean-Philippe Lang Date: Sat, 18 Jun 2016 07:45:31 +0000 (+0000) Subject: Merged r15551 (#22058). X-Git-Tag: 3.3.0~15 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=aba5e4a8bcafe50e64e8e5d15efe2847e3e5ebba;p=redmine.git Merged r15551 (#22058). git-svn-id: http://svn.redmine.org/redmine/branches/3.3-stable@15553 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- 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 },