diff options
author | David Gageot <david@gageot.net> | 2012-11-07 16:25:01 +0100 |
---|---|---|
committer | David Gageot <david@gageot.net> | 2012-11-07 16:25:28 +0100 |
commit | ff0749110306a01e2ae4b1bcd6df07b9e4b15466 (patch) | |
tree | 99da00d8d29838f7fca44e83aa5f9347a4c5cad3 | |
parent | 00e529c92083b2315d4036267c674e8faec3a89e (diff) | |
download | sonarqube-ff0749110306a01e2ae4b1bcd6df07b9e4b15466.tar.gz sonarqube-ff0749110306a01e2ae4b1bcd6df07b9e4b15466.zip |
SONAR-3831 project key in "Bulk deletion"
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/app/views/bulk_deletion/index.html.erb | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/bulk_deletion/index.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/bulk_deletion/index.html.erb index 664f8f67e6a..9d05302feac 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/bulk_deletion/index.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/bulk_deletion/index.html.erb @@ -10,7 +10,7 @@ <div class="tabs-panel marginbottom10"> -<% +<% found_resources_count = @resources.size found_resources_ids = @resources.map {|r| r.id.to_s}.join(',') page_size = (params[:page_size] && params[:page_size].to_i) || 20 @@ -21,14 +21,14 @@ <input type="hidden" name="resource_type" value="<%= @selected_tab -%>"/> <%= submit_tag message('bulk_deletion.filter'), :id => 'filter_resources' %> <% end %> - + <% if @resources.empty? %> <br/> <%= message('no_results') -%> <% else %> <% form_remote_tag( :url => {:action => 'delete_resources'}, :loading => "window.location='#{url_for :action => 'pending_deletions'}';") do %> - + <table class="data" id="resources-to-delete"> <tfoot> <tr> @@ -59,14 +59,17 @@ <td class="thin"> <input id="r-<%= index -%>" type="checkbox" value="<%= resource.id -%>" name="resources[]"> </td> - <td><%= resource.name -%></td> + <td> + <%= resource.name -%> + <br/><span class="small gray"><%= resource.key -%></span></td> + </td> </tr> <% end %> </tbody> </table> - + <% end %> - + <script> function checkBeforeDeleting() { var resource_selected = false; @@ -77,14 +80,14 @@ alert("<%= message('bulk_deletion.please_select_at_least_one_resource') -%>"); return false; } - + if (!confirm("<%= message('bulk_deletion.sure_to_delete_the_resources') -%>")) { return false; - } - + } + return true; } - + function selectOrDeselect() { var status = $('r-all').checked; $$('tbody input').each(function(input) { @@ -99,7 +102,7 @@ } <% end %> } - + function handleSelectAllAction() { if ($('all_resources').value=='') { selectAllResources(); @@ -108,12 +111,12 @@ selectOrDeselect(); } } - + function selectAllResources() { $('all_resources').value = '<%= found_resources_ids -%>'; $('select_all_action').innerHTML = '<%= message('bulk_deletion.clear_selection', :params => found_resources_count) -%>'; } - + function selectNotAllResources() { $('all_resources').value = ''; $('select_all_action').innerHTML = '<%= message('bulk_deletion.select_all_x_resources', :params => found_resources_count) -%>'; @@ -121,5 +124,5 @@ </script> <% end %> - + </div>
\ No newline at end of file |