diff options
Diffstat (limited to 'app/views/documents/show.html.erb')
-rw-r--r-- | app/views/documents/show.html.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/documents/show.html.erb b/app/views/documents/show.html.erb index f65d5ae88..2a430040d 100644 --- a/app/views/documents/show.html.erb +++ b/app/views/documents/show.html.erb @@ -1,7 +1,7 @@ <div class="contextual"> <% if User.current.allowed_to?(:manage_documents, @project) %> <%= link_to l(:button_edit), edit_document_path(@document), :class => 'icon icon-edit', :accesskey => accesskey(:edit) %> -<%= link_to l(:button_delete), document_path(@document), :confirm => l(:text_are_you_sure), :method => :delete, :class => 'icon icon-del' %> +<%= delete_link document_path(@document) %> <% end %> </div> |