there's only download left

pull/3952/head
Markus Kahl 9 years ago
parent 7f88ba5b22
commit f38c54655a
  1. 3
      lib/open_project/object_linking.rb

@ -67,12 +67,11 @@ module OpenProject
# * :download - Force download (default: false)
def link_to_attachment(attachment, options = {})
text = options.delete(:text) || attachment.filename
action = options.delete(:download) ? 'download' : 'show'
only_path = options.delete(:only_path) { true }
link_to h(text),
{ controller: '/attachments',
action: action,
action: 'download',
id: attachment,
filename: attachment.filename,
host: Setting.host_name,

Loading…
Cancel
Save