diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-01-26 21:09:27 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-01-26 21:09:27 +0000 |
commit | 486b4e9ea25807086e9bf4f865ec05d60fb48d1c (patch) | |
tree | b37c124dc24be60e7194f8e38397e402634324f8 /app/views/documents | |
parent | 5f361e71df2d50d06b54370530f2d53bf928dfbf (diff) | |
download | redmine-486b4e9ea25807086e9bf4f865ec05d60fb48d1c.tar.gz redmine-486b4e9ea25807086e9bf4f865ec05d60fb48d1c.zip |
deprecated ":post => true" replaced
git-svn-id: http://redmine.rubyforge.org/svn/trunk@191 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/documents')
-rw-r--r-- | app/views/documents/show.rhtml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/documents/show.rhtml b/app/views/documents/show.rhtml index 27ddb8a0c..31595ab0f 100644 --- a/app/views/documents/show.rhtml +++ b/app/views/documents/show.rhtml @@ -1,6 +1,6 @@ <div class="contextual">
<%= link_to_if_authorized l(:button_edit), {:controller => 'documents', :action => 'edit', :id => @document}, :class => 'icon icon-edit' %>
-<%= link_to_if_authorized l(:button_delete), {:controller => 'documents', :action => 'destroy', :id => @document}, :confirm => l(:text_are_you_sure), :post => true, :class => 'icon icon-del' %>
+<%= link_to_if_authorized l(:button_delete), {:controller => 'documents', :action => 'destroy', :id => @document}, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-del' %>
</div>
<h2><%= @document.title %></h2>
@@ -15,7 +15,7 @@ <% for attachment in @attachments %> <li>
<div class="contextual">
- <%= link_to_if_authorized l(:button_delete), {:controller => 'documents', :action => 'destroy_attachment', :id => @document, :attachment_id => attachment}, :confirm => l(:text_are_you_sure), :post => true, :class => 'icon icon-del' %>
+ <%= link_to_if_authorized l(:button_delete), {:controller => 'documents', :action => 'destroy_attachment', :id => @document, :attachment_id => attachment}, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-del' %>
</div>
<%= link_to attachment.filename, :action => 'download', :id => @document, :attachment_id => attachment %>
(<%= number_to_human_size attachment.filesize %>)<br />
|