@@ -252,7 +252,7 module IssuesHelper | |||||
252 | if detail.property == 'attachment' && !value.blank? && atta = Attachment.find_by_id(detail.prop_key) |
|
252 | if detail.property == 'attachment' && !value.blank? && atta = Attachment.find_by_id(detail.prop_key) | |
253 | # Link to the attachment if it has not been removed |
|
253 | # Link to the attachment if it has not been removed | |
254 | value = link_to_attachment(atta, :download => true, :only_path => options[:only_path]) |
|
254 | value = link_to_attachment(atta, :download => true, :only_path => options[:only_path]) | |
255 | if atta.is_text? |
|
255 | if options[:only_path] != false && atta.is_text? | |
256 | value += link_to( |
|
256 | value += link_to( | |
257 | image_tag('magnifier.png'), |
|
257 | image_tag('magnifier.png'), | |
258 | :controller => 'attachments', :action => 'show', |
|
258 | :controller => 'attachments', :action => 'show', |
General Comments 0
You need to be logged in to leave comments.
Login now