Commit 3be226d0 authored by Jean-Philippe Lang's avatar Jean-Philippe Lang

Added a confirmation dialog box for project archiving

git-svn-id: http://redmine.rubyforge.org/svn/trunk@603 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent dfaf8f7e
......@@ -33,7 +33,7 @@
<td align="center"><%= format_date(project.created_on) %>
<td align="center" style="width:10%">
<small>
<%= link_to(l(:button_archive), { :controller => 'projects', :action => 'archive', :id => project }, :method => :post, :class => 'icon icon-lock') if project.active? %>
<%= link_to(l(:button_archive), { :controller => 'projects', :action => 'archive', :id => project }, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-lock') if project.active? %>
<%= link_to(l(:button_unarchive), { :controller => 'projects', :action => 'unarchive', :id => project }, :method => :post, :class => 'icon icon-unlock') if !project.active? && (project.parent.nil? || project.parent.active?) %>
</small>
</td>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment