From: Fabrice Bellingard Date: Tue, 12 Apr 2011 20:32:10 +0000 (+0200) Subject: [SONAR-1973] Fix small issue with icon replacement after creating an X-Git-Tag: 2.8~178 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=39690ab22e7f63890e608a439a25c70c5a081f2b;p=sonarqube.git [SONAR-1973] Fix small issue with icon replacement after creating an issue --- diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/reviews/create_result.js.rjs b/sonar-server/src/main/webapp/WEB-INF/app/views/reviews/create_result.js.rjs index 0a771dac806..aa8ac5ad618 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/reviews/create_result.js.rjs +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/reviews/create_result.js.rjs @@ -1,6 +1,6 @@ -if @reviews - page.hide "createReviewLink" + @review.rule_failure_id.to_s - page.replace_html "reviewFailure" + @review.rule_failure_id.to_s, :partial => "list", :locals => { :reviews => @reviews } -else - page.replace_html "reviewFailure" + @review.rule_failure_id.to_s, :partial => "form" +if @reviews + page.replace_html "createReviewLink" + @review.rule_failure_id.to_s, image_tag("reviews/review.png") + page.replace_html "reviewFailure" + @review.rule_failure_id.to_s, :partial => "list", :locals => { :reviews => @reviews } +else + page.replace_html "reviewFailure" + @review.rule_failure_id.to_s, :partial => "form" end \ No newline at end of file