From 80af51a9b71ba590e9c1dc938c136e27f29126d0 Mon Sep 17 00:00:00 2001 From: Evgeny Mandrikov Date: Thu, 23 Jun 2011 15:23:07 +0400 Subject: [PATCH] Small UI fixes --- .../app/views/reviews/_false_positive_form.html.erb | 13 +++++++++++-- .../reviews/_violation_false_positive_form.html.erb | 2 +- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/reviews/_false_positive_form.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/reviews/_false_positive_form.html.erb index c173a770296..b4a0be8ac11 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/reviews/_false_positive_form.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/reviews/_false_positive_form.html.erb @@ -1,11 +1,20 @@ +<% + if params[:false_positive]=='true' + title = "Why is it a false-positive ?" + button = "Flag as false-positive" + else + title = "Why is it not a false-positive anymore ?" + button = "Unflag as false-positive" + end +%>
<% if params[:false_positive]=='true' -%> <% end %> -

Why is it a false-positive ?

+

<%= title -%>

- <%= submit_to_remote "submit_btn", "Flag as false-positive", :url => { :action => 'flag_as_false_positive' }, :html => { :id => "submit_btn", :disabled => "true" }, :update => 'review' -%> + <%= submit_to_remote "submit_btn", button, :url => { :action => 'flag_as_false_positive' }, :html => { :id => "submit_btn", :disabled => "true" }, :update => 'review' -%>   <%= link_to_remote 'Cancel', :url => {:action => 'show', :id => params[:id]}, :update => 'review' -%>
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/reviews/_violation_false_positive_form.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/reviews/_violation_false_positive_form.html.erb index d11e374e1e5..3c4e89354a1 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/reviews/_violation_false_positive_form.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/reviews/_violation_false_positive_form.html.erb @@ -6,7 +6,7 @@ title = "Why is it not a false-positive anymore ?" button = "Unflag as false-positive" end - %> +%>
<% if params[:false_positive]=='true' -%> -- 2.39.5