mirror of
https://github.com/redmine/redmine.git
synced 2025-12-16 05:20:28 +01:00
Add download buttons in Files columns of the issues list (#32240).
Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@19500 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -253,7 +253,20 @@ module ApplicationHelper
|
||||
when 'Issue'
|
||||
object.visible? && html ? link_to_issue(object) : "##{object.id}"
|
||||
when 'Attachment'
|
||||
html ? link_to_attachment(object) : object.filename
|
||||
if html
|
||||
content_tag(
|
||||
:span,
|
||||
link_to_attachment(object) +
|
||||
link_to_attachment(
|
||||
object,
|
||||
:class => ['icon-only', 'icon-download'],
|
||||
:title => l(:button_download),
|
||||
:download => true
|
||||
)
|
||||
)
|
||||
else
|
||||
object.filename
|
||||
end
|
||||
when 'CustomValue', 'CustomFieldValue'
|
||||
if object.custom_field
|
||||
f = object.custom_field.format.formatted_custom_value(self, object, html)
|
||||
|
||||
Reference in New Issue
Block a user