summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorMarius Balteanu <marius.balteanu@zitec.com>2022-05-16 22:38:20 +0000
committerMarius Balteanu <marius.balteanu@zitec.com>2022-05-16 22:38:20 +0000
commit9e8a7abddbf3b5c6cff511ca0d81e1222cc15ded (patch)
tree66c0700adf9dff64304244bc3ce09a3ac6d5dff7 /app
parent0893331de0df737e3f0bf295aeded9f08ff1167a (diff)
downloadredmine-9e8a7abddbf3b5c6cff511ca0d81e1222cc15ded.tar.gz
redmine-9e8a7abddbf3b5c6cff511ca0d81e1222cc15ded.zip
Ask more specific confirmation questions when closing/reopening/archiving projects (#36891).
Patch by Holger Just. git-svn-id: https://svn.redmine.org/redmine/trunk@21589 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/views/context_menus/projects.html.erb5
-rw-r--r--app/views/projects/show.html.erb4
2 files changed, 4 insertions, 5 deletions
diff --git a/app/views/context_menus/projects.html.erb b/app/views/context_menus/projects.html.erb
index d6a1177c7..c5db9084a 100644
--- a/app/views/context_menus/projects.html.erb
+++ b/app/views/context_menus/projects.html.erb
@@ -3,14 +3,13 @@
<% if @project.archived? %>
<li><%= context_menu_link l(:button_unarchive), unarchive_project_path(@project), method: :post, class: 'icon icon-unlock' %></li>
<% else %>
- <li><%= context_menu_link l(:button_archive), archive_project_path(@project), data: {confirm: l(:text_are_you_sure)}, method: :post, class: 'icon icon-lock' %></li>
+ <li><%= context_menu_link l(:button_archive), archive_project_path(@project), data: {confirm: l(:text_project_archive_confirmation, @project.to_s)}, method: :post, class: 'icon icon-lock' %></li>
<% end %>
<li>
<%= context_menu_link l(:button_copy), copy_project_path(@projects), class: 'icon icon-copy' %>
</li>
<li>
- <%= context_menu_link l(:button_delete), project_path(@project, back_url: @back),
- method: :delete, data: {confirm: l(:text_project_destroy_confirmation)}, class: 'icon icon-del' %>
+ <%= context_menu_link l(:button_delete), project_path(@project, back_url: @back), method: :delete, class: 'icon icon-del' %>
</li>
<% end %>
</ul>
diff --git a/app/views/projects/show.html.erb b/app/views/projects/show.html.erb
index 5c7ef440c..a1035927f 100644
--- a/app/views/projects/show.html.erb
+++ b/app/views/projects/show.html.erb
@@ -7,9 +7,9 @@
<% end %>
<% if User.current.allowed_to?(:close_project, @project) %>
<% if @project.active? %>
- <%= link_to l(:button_close), close_project_path(@project), :data => {:confirm => l(:text_are_you_sure)}, :method => :post, :class => 'icon icon-lock' %>
+ <%= link_to l(:button_close), close_project_path(@project), :data => {:confirm => l(:text_project_close_confirmation, @project.to_s)}, :method => :post, :class => 'icon icon-lock' %>
<% else %>
- <%= link_to l(:button_reopen), reopen_project_path(@project), :data => {:confirm => l(:text_are_you_sure)}, :method => :post, :class => 'icon icon-unlock' %>
+ <%= link_to l(:button_reopen), reopen_project_path(@project), :data => {:confirm => l(:text_project_reopen_confirmation, @project.to_s)}, :method => :post, :class => 'icon icon-unlock' %>
<% end %>
<% end %>
<% if @project.deletable? %>