diff options
author | Fabrice Bellingard <fabrice.bellingard@sonarsource.com> | 2013-01-16 14:25:08 +0100 |
---|---|---|
committer | Fabrice Bellingard <fabrice.bellingard@sonarsource.com> | 2013-01-16 14:25:51 +0100 |
commit | f294792d6c7c7b2531e0bfdc842bfd1786cec923 (patch) | |
tree | 2de3c4f3e4d1fcd9fbfa6ea5cfb6757f2cecd9f3 /sonar-server | |
parent | 3944edc8c87616e7b41daac6beefaa39bb9ce004 (diff) | |
download | sonarqube-f294792d6c7c7b2531e0bfdc842bfd1786cec923.tar.gz sonarqube-f294792d6c7c7b2531e0bfdc842bfd1786cec923.zip |
SONAR-4003 Improve "Action Plans" widget: display or not closed reviews
=> Make the "Action Plans" widget support a new option to display or
not the closed reviews in each action plan
Diffstat (limited to 'sonar-server')
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/app/models/action_plan.rb | 6 | ||||
-rw-r--r-- | sonar-server/src/main/webapp/stylesheets/style.css | 16 |
2 files changed, 17 insertions, 5 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/models/action_plan.rb b/sonar-server/src/main/webapp/WEB-INF/app/models/action_plan.rb index 4c532642ce8..a58c1c11a9a 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/models/action_plan.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/models/action_plan.rb @@ -58,7 +58,11 @@ class ActionPlan < ActiveRecord::Base end def has_open_reviews? - reviews.select {|r| r.open? || r.reopened?}.size > 0 + open_reviews.size > 0 + end + + def open_reviews + reviews.select {|r| r.open? || r.reopened?} end def over_due? diff --git a/sonar-server/src/main/webapp/stylesheets/style.css b/sonar-server/src/main/webapp/stylesheets/style.css index d76921f08f4..2394d8c6dd6 100644 --- a/sonar-server/src/main/webapp/stylesheets/style.css +++ b/sonar-server/src/main/webapp/stylesheets/style.css @@ -50,6 +50,18 @@ text-align: center; } +.top { + vertical-align: top; +} + +.bottom { + vertical-align: bottom; +} + +.middle { + vertical-align: middle; +} + .nowrap { white-space: nowrap; } @@ -1031,10 +1043,6 @@ table.actionPlans { margin-top: 10px; } -table.actionPlans td { - vertical-align: top; -} - table.actionPlans td.progress { width: 300px; padding: 0px 40px; |