diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2013-12-17 22:03:42 +0100 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2013-12-17 22:03:42 +0100 |
commit | d9101c3424a1f5feebccac81114d17b5c514c274 (patch) | |
tree | e84038f913442d0ff91fe9603a6444622b6e9c82 /sonar-server/src/main/webapp/WEB-INF/app | |
parent | a8fd4c7291e78902aa99c1bfc4daa9c50f95dd48 (diff) | |
download | sonarqube-d9101c3424a1f5feebccac81114d17b5c514c274.tar.gz sonarqube-d9101c3424a1f5feebccac81114d17b5c514c274.zip |
SONAR-4965 Remove rules csv download in quality profiles
Diffstat (limited to 'sonar-server/src/main/webapp/WEB-INF/app')
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/app/views/new_rules_configuration/index.html.erb | 22 | ||||
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/app/views/rules_configuration/index.html.erb | 18 |
2 files changed, 6 insertions, 34 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/new_rules_configuration/index.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/new_rules_configuration/index.html.erb index 0441adf7350..8f226fdfd4a 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/new_rules_configuration/index.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/new_rules_configuration/index.html.erb @@ -17,13 +17,6 @@ return !localModifications; } - function downloadCsv() { - if (localModifications) { - alert("Please refresh the search results before."); - } - return !localModifications; - } - function expand_rules(){ $j('.rule-desc').show(); } @@ -101,15 +94,8 @@ <% end %> </div> <div class="line-block marginbottom10"> - <ul style="float: right" class="horizontal"> - <li class="marginleft10"> - <div class="csv"> - <a href="<%= url_for(:controller => 'api/rules', :action => 'index', :language => @profile.language, :profile => @profile.name, :plugins => @repositories.join(','), - :status => @activation, :inheritance => @inheritance, :searchtext => @searchtext, :priorities => @priorities.join(','), :format => 'csv') -%>" - onClick="return downloadCsv()" id="download-link" class=""><%= message('download_verb') -%></a> - </div> - </li> - <% if enable_modification && @rules.size>0 %> + <% if enable_modification && @rules.size>0 %> + <ul style="float: right" class="horizontal"> <li class="marginleft10"> <div class="bulk-edit"><%= message('bulk_change') -%>: <form action="<%= ApplicationController.root_context -%>/new_rules_configuration/bulk_edit" method="POST" id="bulk-form" @@ -122,8 +108,8 @@ </form> </div> </li> - <% end %> - </ul> + </ul> + <% end %> <h2> <% if @hidden_actives && @hidden_actives>0 %> <span class="small"><a href="<%= url_for params.merge({:rule_activation => ''}) -%>" diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/rules_configuration/index.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/rules_configuration/index.html.erb index e4890275cac..99095ef180a 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/rules_configuration/index.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/rules_configuration/index.html.erb @@ -17,13 +17,6 @@ return !localModifications; } - function downloadCsv() { - if (localModifications) { - alert("Please refresh the search results before."); - } - return !localModifications; - } - function expand_rules(){ $j('.rule-desc').show(); } @@ -101,15 +94,8 @@ <% end %> </div> <div class="line-block marginbottom10"> - <ul style="float: right" class="horizontal"> - <li class="marginleft10"> - <div class="csv"> - <a href="<%= url_for(:controller => 'api/rules', :action => 'index', :language => @profile.language, :profile => @profile.name, :plugins => @repositories.join(','), - :status => @activation, :inheritance => @inheritance, :searchtext => @searchtext, :priorities => @priorities.join(','), :format => 'csv') -%>" - onClick="return downloadCsv()" id="download-link" class=""><%= message('download_verb') -%></a> - </div> - </li> <% if enable_modification && @rules.size>0 %> + <ul style="float: right" class="horizontal"> <li class="marginleft10"> <div class="bulk-edit"><%= message('bulk_change') -%>: <form action="<%= ApplicationController.root_context -%>/rules_configuration/bulk_edit" method="POST" id="bulk-form" @@ -122,8 +108,8 @@ </form> </div> </li> + </ul> <% end %> - </ul> <h2> <% if @hidden_actives && @hidden_actives>0 %> <span class="small"><a href="<%= url_for params.merge({:rule_activation => ''}) -%>" |