diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-11-27 11:16:47 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-11-27 11:16:47 +0000 |
commit | 885605b439dec39b23d2043c436d03b447ad919c (patch) | |
tree | 978eab45c993b38c3f684ed19aa24913e2065394 /app/views/attachments | |
parent | b95fd6315c9b82eb65244b1a5b13bd1b69afe529 (diff) | |
download | redmine-885605b439dec39b23d2043c436d03b447ad919c.tar.gz redmine-885605b439dec39b23d2043c436d03b447ad919c.zip |
Resourcified attachments.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7948 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/attachments')
-rw-r--r-- | app/views/attachments/_links.html.erb | 4 |
1 files changed, 2 insertions, 2 deletions
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? %> <span class="size">(<%= number_to_human_size attachment.filesize %>)</span> <% 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 %> |