summaryrefslogtreecommitdiffstats
path: root/app/views/projects
diff options
context:
space:
mode:
authorMarius Balteanu <marius.balteanu@zitec.com>2022-05-17 20:45:41 +0000
committerMarius Balteanu <marius.balteanu@zitec.com>2022-05-17 20:45:41 +0000
commit883aa3b5cca1645f2aae353f4f180f77c5693c7e (patch)
tree97c45c8f806b96f5a41dd4853d89dffd27b9f3c8 /app/views/projects
parent3719eb32f44681987df6bd55c9ca1888190daecb (diff)
downloadredmine-883aa3b5cca1645f2aae353f4f180f77c5693c7e.tar.gz
redmine-883aa3b5cca1645f2aae353f4f180f77c5693c7e.zip
Background job for project deletion (#36691).
Due to the deletion of dependent objects (issues etc), project deletion may take a long time. This patch moves the actual project deletion into an ActiveJob job. It also introduces a new project status (SCHEDULED_FOR_DELETION) that is used to effectively hide the project that is about to be deleted (and any potential descendant projects) from the system immediately. A security notification is sent out to the user that deleted the project, informing about success / failure. The projects list is extended to be able to filter for the new status, so in case of a failure, the project can still be accessed for examination. Patch by Jens Krämer. git-svn-id: https://svn.redmine.org/redmine/trunk@21591 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/projects')
-rw-r--r--app/views/projects/_list.html.erb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/projects/_list.html.erb b/app/views/projects/_list.html.erb
index 39978ee64..4c592247c 100644
--- a/app/views/projects/_list.html.erb
+++ b/app/views/projects/_list.html.erb
@@ -40,13 +40,13 @@
</tr>
<% end %>
<tr id="project-<%= entry.id %>" class="<%= cycle('odd', 'even') %> hascontextmenu <%= entry.css_classes %> <%= level > 0 ? "idnt idnt-#{level}" : nil %>">
- <% if @admin_list %>
+ <% if @admin_list && !entry.scheduled_for_deletion? %>
<td class="checkbox hide-when-print"><%= check_box_tag("ids[]", entry.id, false, :id => nil) %></td>
<% end %>
<% @query.inline_columns.each do |column| %>
<%= content_tag('td', column_content(column, entry), :class => column.css_classes) %>
<% end %>
- <% if @admin_list %>
+ <% if @admin_list && !entry.scheduled_for_deletion? %>
<td class="buttons"><%= link_to_context_menu %></td>
<% end %>
</tr>