diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2016-08-10 18:16:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-10 18:16:54 +0200 |
commit | c12f3d56cb99478c36242fd122258ebf0d26f740 (patch) | |
tree | 2a7cae9094a9773bf5ba621bb3214f52c2c6126d /server/sonar-web/src/main/webapp/WEB-INF/app/views/project/key.html.erb | |
parent | 6d55c79eed10aefdda9381cb82acdac47c824ec6 (diff) | |
download | sonarqube-c12f3d56cb99478c36242fd122258ebf0d26f740.tar.gz sonarqube-c12f3d56cb99478c36242fd122258ebf0d26f740.zip |
SONAR-7919 Rewrite "Update Key" project page (#1140)
Diffstat (limited to 'server/sonar-web/src/main/webapp/WEB-INF/app/views/project/key.html.erb')
-rw-r--r-- | server/sonar-web/src/main/webapp/WEB-INF/app/views/project/key.html.erb | 74 |
1 files changed, 3 insertions, 71 deletions
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/views/project/key.html.erb b/server/sonar-web/src/main/webapp/WEB-INF/app/views/project/key.html.erb index 0ae01cfeea0..e9dd9ae3410 100644 --- a/server/sonar-web/src/main/webapp/WEB-INF/app/views/project/key.html.erb +++ b/server/sonar-web/src/main/webapp/WEB-INF/app/views/project/key.html.erb @@ -1,71 +1,3 @@ -<% - if controller.java_facade.getResourceTypeBooleanProperty(@project.qualifier, 'updatable_key') - has_modules = !@project.modules.empty? - reset_cycle 'modules_tree' -%> - -<script type="text/javascript"> - function update_launched() { - $j('input.action').each(function(index,input) { - input.disabled=true; - }); - } -</script> - -<div class="page"> - <header class="page-header"> - <h1 class="page-title"><%= message('update_key.page') -%></h1> - <p class="page-description"><%= message('update_key.page.description') -%></p> - </header> - - <% if has_modules %> - <h2><%= message('update_key.bulk_update') -%></h2> - <br/> - <p> - <%= message('update_key.bulk_change_description') -%> - <br/><br/> - <%= message('update_key.current_key_for_project_x_is_x', :params => [@project.name, @project.key]) -%> - </p> - <br/> - <% form_tag( {:action => 'prepare_key_bulk_update', :id => @project.id }, :onsubmit => "update_launched();$j('#loading_bulk_update').show();") do -%> - <table> - <tr> - <td style="padding-right: 20px"><%= message('update_key.replace') -%>:</td> - <td><input type="text" value="" name="string_to_replace" id="string_to_replace" size="40" maxlength="400"></td> - <td class="form-val-note" style="padding-left: 10px;"><%= message('update_key.replace_example') -%></td> - </tr> - <tr> - <td style="padding-right: 20px"><%= message('update_key.by') -%>:</td> - <td><input type="text" value="" name="replacement_string" id="replacement_string" size="40" maxlength="400"></td> - <td class="form-val-note" style="padding-left: 10px;"><%= message('update_key.by_example') -%></td> - </tr> - <tr> - <td></td> - <td style="padding-top: 5px"> - <%= submit_tag message('update_key.rename'), :id => 'bulk_update_button', :class => 'action' -%> - <span class="loading" id="loading_bulk_update" style="display: none; padding: 3px 10px;"></span> - </td> - <td></td> - </tr> - </table> - <% end %> - <br/> - <br/> - <h2><%= message('update_key.fine_grained_key_update') -%></h2> - <br/> - <% end %> - - <table class="data" style="width:1%"> - <thead> - <tr> - <th class="nowrap"><%= message('update_key.old_key') -%></th> - <th><%= message('update_key.new_key') -%></th> - </tr> - </thead> - <tbody> - <%= render :partial => 'key_modules', :locals => {:current_module => @project, :module_depth => 0, :id_prefix => "0"} -%> - </tbody> - </table> - - <% end %> -</div> +<% content_for :extra_script do %> + <script src="<%= ApplicationController.root_context -%>/js/bundles/project-admin.js?v=<%= sonar_version -%>"></script> +<% end %> |