@@ -451,7 +451,8 module IssuesHelper | |||
|
451 | 451 | atta = detail.journal.journalized.attachments.detect {|a| a.id == detail.prop_key.to_i} |
|
452 | 452 | # Link to the attachment if it has not been removed |
|
453 | 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 | 456 | value += link_to(l(:button_view), |
|
456 | 457 | { :controller => 'attachments', :action => 'show', |
|
457 | 458 | :id => atta, :filename => atta.filename }, |
General Comments 0
You need to be logged in to leave comments.
Login now