##// END OF EJS Templates
Add missing links to images in issue history (#22058)....
Jean-Philippe Lang -
r15169:42e8ff4493e5
parent child
Show More
@@ -451,7 +451,8 module IssuesHelper
451 atta = detail.journal.journalized.attachments.detect {|a| a.id == detail.prop_key.to_i}
451 atta = detail.journal.journalized.attachments.detect {|a| a.id == detail.prop_key.to_i}
452 # Link to the attachment if it has not been removed
452 # Link to the attachment if it has not been removed
453 value = link_to_attachment(atta, :download => true, :only_path => options[:only_path])
453 value = link_to_attachment(atta, :download => true, :only_path => options[:only_path])
454 if options[:only_path] != false && atta.is_text?
454 if options[:only_path] != false && (atta.is_text? || atta.is_image?)
455 value += ' '
455 value += link_to(l(:button_view),
456 value += link_to(l(:button_view),
456 { :controller => 'attachments', :action => 'show',
457 { :controller => 'attachments', :action => 'show',
457 :id => atta, :filename => atta.filename },
458 :id => atta, :filename => atta.filename },
General Comments 0
You need to be logged in to leave comments. Login now