From a88334d64b20fe8401548f4cdcffa9104aecc19a Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Fri, 23 Mar 2012 00:12:18 +0100 Subject: [PATCH] Add some HTML ids for integration tests --- .../encryption_configuration/generate_secret_form.html.erb | 6 +++--- .../app/views/encryption_configuration/index.html.erb | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/encryption_configuration/generate_secret_form.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/encryption_configuration/generate_secret_form.html.erb index eb7351c7bd9..b3236d737b6 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/encryption_configuration/generate_secret_form.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/encryption_configuration/generate_secret_form.html.erb @@ -2,10 +2,10 @@

Secret key is required to be able to encrypt properties. More information.

<%= button_to_remote 'Generate secret key', - :url => {:action => 'generate_secret'}, + {:url => {:action => 'generate_secret'}, :update => {:success => 'secret_content', :failure => 'secret_error'}, :failure => "$('secret_error').show()", - :method => 'POST', - :id => 'submit_generate_secret' -%> + :method => 'POST'}, + {:id => 'submit_generate_secret'} -%>
\ No newline at end of file diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/encryption_configuration/index.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/encryption_configuration/index.html.erb index ba7aae6d40a..ff021a225ac 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/encryption_configuration/index.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/encryption_configuration/index.html.erb @@ -13,7 +13,7 @@ -

Note that the <%= link_to 'secret key can be changed', {:action => 'generate_secret_form'}, :class => 'link-action' %> +

Note that the <%= link_to 'secret key can be changed', {:action => 'generate_secret_form'}, :class => 'link-action', :id => 'link-generate-key' %> but all the encrypted properties will have to be updated. More information.