summaryrefslogtreecommitdiffstats
path: root/app/views/admin
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-08-02 20:10:37 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-08-02 20:10:37 +0000
commit3be226d0c475359bf9061b4577b7efada397dd0d (patch)
treeb7e052a9096b50d847e6925724dd8476c9c28705 /app/views/admin
parentdfaf8f7e6a0cc59f92a254108393efcf90360cef (diff)
downloadredmine-3be226d0c475359bf9061b4577b7efada397dd0d.tar.gz
redmine-3be226d0c475359bf9061b4577b7efada397dd0d.zip
Added a confirmation dialog box for project archiving
git-svn-id: http://redmine.rubyforge.org/svn/trunk@603 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/admin')
-rw-r--r--app/views/admin/projects.rhtml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/admin/projects.rhtml b/app/views/admin/projects.rhtml
index a850d0918..e181f85c5 100644
--- a/app/views/admin/projects.rhtml
+++ b/app/views/admin/projects.rhtml
@@ -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>