diff options
author | Fabrice Bellingard <bellingard@gmail.com> | 2012-01-26 17:06:05 +0100 |
---|---|---|
committer | Fabrice Bellingard <bellingard@gmail.com> | 2012-01-26 17:06:05 +0100 |
commit | 0a59093da6b70ea04ce1a790ca4adb1f3d7c7e63 (patch) | |
tree | 8d9cabd31a934e5f99fd1c7b75c46170bb6c83af /sonar-server | |
parent | 20bd92190773adb807b7996d6de03abfe02d3d0a (diff) | |
download | sonarqube-0a59093da6b70ea04ce1a790ca4adb1f3d7c7e63.tar.gz sonarqube-0a59093da6b70ea04ce1a790ca4adb1f3d7c7e63.zip |
SONAR-2124 Show difference when rules in derived profiles are changed
=> show when the severity has changed
Diffstat (limited to 'sonar-server')
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/app/views/rules_configuration/_rule.html.erb | 3 |
1 files changed, 3 insertions, 0 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 faa8602dd0c..57123c9ea6e 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 @@ -60,6 +60,9 @@ %> <%= message( active_rule.inherited? ? 'rules_configuration.rule_inherited_from_profile_x' : 'rules_configuration.rule_overriding_from_profile_x', :params => ancestor_active_rule_link) -%> + <% if ancestor_active_rule.priority != active_rule.priority %> + <span class="note" style="font-weight: bold"> (<%= message('rules_configuration.original_severity') -%>: <%= ancestor_active_rule.priority_text -%>)</span> + <% end %> <% if is_admin && active_rule.overrides? %> <br/> <%= button_to message('rules_configuration.revert_to_parent_definition'), :overwrite_params => {:action => 'revert_rule', :id => profile.id, :active_rule_id => active_rule.id} %><br/> |