From 885605b439dec39b23d2043c436d03b447ad919c Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 27 Nov 2011 11:16:47 +0000 Subject: Resourcified attachments. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7948 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/attachments/_links.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/views/attachments') diff --git a/app/views/attachments/_links.html.erb b/app/views/attachments/_links.html.erb index 4f4e2d180..c92599a66 100644 --- a/app/views/attachments/_links.html.erb +++ b/app/views/attachments/_links.html.erb @@ -4,9 +4,9 @@ <%= h(" - #{attachment.description}") unless attachment.description.blank? %> (<%= number_to_human_size attachment.filesize %>) <% if options[:deletable] %> - <%= link_to image_tag('delete.png'), {:controller => 'attachments', :action => 'destroy', :id => attachment}, + <%= link_to image_tag('delete.png'), attachment_path(attachment), :confirm => l(:text_are_you_sure), - :method => :post, + :method => :delete, :class => 'delete', :title => l(:button_delete) %> <% end %> -- cgit v1.2.3