From 91d7a98155a4a47e945e06a6cd7c4ea476fea668 Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Tue, 6 Oct 2015 11:45:02 +0200 Subject: [PATCH] SONAR-6556 fix project deletion --- .../_pending_deletions_screen.html.erb | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 server/sonar-web/src/main/webapp/WEB-INF/app/views/bulk_deletion/_pending_deletions_screen.html.erb diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/views/bulk_deletion/_pending_deletions_screen.html.erb b/server/sonar-web/src/main/webapp/WEB-INF/app/views/bulk_deletion/_pending_deletions_screen.html.erb new file mode 100644 index 00000000000..ab311285ab1 --- /dev/null +++ b/server/sonar-web/src/main/webapp/WEB-INF/app/views/bulk_deletion/_pending_deletions_screen.html.erb @@ -0,0 +1,39 @@ +<% + deletion_manager = ResourceDeletionManager.instance + pending_deletions = deletion_manager.currently_deleting_resources? + failed_deletions = deletion_manager.failed_deletions + start_time = deletion_manager.deletion_start_time +%> + +<% if pending_deletions %> + +<% end %> + +

<%= message('bulk_deletion.page') -%>

+ +
+ <% if pending_deletions %> + <%= image_tag 'loading.gif' -%> + <% end %> + + <%= deletion_manager.message -%> +
+
+ <%= message('bulk_deletion.started_since_x', :params => distance_of_time_in_words(start_time, Time.now) ) -%> (<%= l start_time -%>) +
+
+ + <% if !pending_deletions && !failed_deletions.empty? %> +

+ <%= message('bulk_deletion.following_deletions_failed') -%> +

+

+

+ <%= message('bulk_deletion.hide_message') -%> +

+ <% end %> +
\ No newline at end of file -- 2.39.5