summaryrefslogtreecommitdiffstats
path: root/app/views/attachments/file.rhtml
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-07-22 17:55:19 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-07-22 17:55:19 +0000
commit9b579de9e234e378fb5081d79bea02d175495db7 (patch)
tree28d55b59b2ade9201dd0ea518c56e740b039e649 /app/views/attachments/file.rhtml
parent8a7bfc72b20a0a554812db7f8bb7bfdf3e2a21d4 (diff)
downloadredmine-9b579de9e234e378fb5081d79bea02d175495db7.tar.gz
redmine-9b579de9e234e378fb5081d79bea02d175495db7.zip
Appends the filename to the attachment url so that clients that ignore content-disposition http header get the real filename (#1649).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1686 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/attachments/file.rhtml')
-rw-r--r--app/views/attachments/file.rhtml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/attachments/file.rhtml b/app/views/attachments/file.rhtml
index 7988d0aed..468c6b666 100644
--- a/app/views/attachments/file.rhtml
+++ b/app/views/attachments/file.rhtml
@@ -3,7 +3,7 @@
<div class="attachments">
<p><%= h("#{@attachment.description} - ") unless @attachment.description.blank? %>
<span class="author"><%= @attachment.author %>, <%= format_time(@attachment.created_on) %></span></p>
-<p><%= link_to l(:button_download), {:controller => 'attachments', :action => 'download', :id => @attachment } -%>
+<p><%= link_to_attachment @attachment, :text => l(:button_download), :download => true -%>
<span class="size">(<%= number_to_human_size @attachment.filesize %>)</span></p>
</div>