diff options
author | Julien Lancelot <julien.lancelot@gmail.com> | 2013-07-12 16:23:22 +0200 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@gmail.com> | 2013-07-12 16:57:37 +0200 |
commit | 3f2feee011facb6cc4267a805b6821cbf14eee15 (patch) | |
tree | b0482341ad4fd43ad17544081af3e3d27e65d024 | |
parent | 9f58e25cb331d9619e0cf059367196b3816eecb2 (diff) | |
download | sonarqube-3f2feee011facb6cc4267a805b6821cbf14eee15.tar.gz sonarqube-3f2feee011facb6cc4267a805b6821cbf14eee15.zip |
Remove option color in format_variation as it this option is always activated and can never been deactivate
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/app/helpers/application_helper.rb | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/helpers/application_helper.rb b/sonar-server/src/main/webapp/WEB-INF/app/helpers/application_helper.rb index f82cbee29b6..2bea966249b 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/helpers/application_helper.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/helpers/application_helper.rb @@ -486,7 +486,6 @@ module ApplicationHelper # Format variation value # # === Optional parameters - # * color: true|false. Default is true. # * period: integer between 1 and 5. By default the index is defined by the dashboard variation select-box # * style: light|normal|none. Default is normal (parenthesis + bold) # @@ -509,18 +508,15 @@ module ApplicationHelper end formatted_val= m.format_numeric_value(val, :variation => true) - css_class='' - if options[:color]||true - css_class='var' - if m.metric.qualitative? - factor=m.metric.direction * val - if factor>0 - # better - css_class='varb' - elsif factor<0 - # worst - css_class='varw' - end + css_class='var' + if m.metric.qualitative? + factor=m.metric.direction * val + if factor>0 + # better + css_class='varb' + elsif factor<0 + # worst + css_class='varw' end end |