mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-07 16:11:30 +00:00
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
16 lines
751 B
Plaintext
16 lines
751 B
Plaintext
<ul>
|
|
<% if @project && !@project.scheduled_for_deletion? %>
|
|
<% 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_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, class: 'icon icon-del' %>
|
|
</li>
|
|
<% end %>
|
|
</ul>
|