From f5e00efa3bab2bbe4b6e6f602ac1ccd381eeab91 Mon Sep 17 00:00:00 2001 From: Julien Lancelot Date: Thu, 16 Jan 2014 11:10:47 +0100 Subject: [PATCH] SONAR-4923 Do not display "Add Note" action on inactive rules --- .../WEB-INF/app/views/rules_configuration/_rule.html.erb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/rules_configuration/_rule.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/rules_configuration/_rule.html.erb index ba0a7f31847..35e9051bb61 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/rules_configuration/_rule.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/rules_configuration/_rule.html.erb @@ -88,9 +88,11 @@ <% end %> -
- <%= render :partial => 'active_rule_note', :locals => {:rule => rule} %> -
+ <% if rule.activeRuleId %> +
+ <%= render :partial => 'active_rule_note', :locals => {:rule => rule} %> +
+ <% end %> <% if profiles_administrator? %> <% if rule.template? %> -- 2.39.5