diff options
author | simonbrandhof <simon.brandhof@gmail.com> | 2011-03-28 15:43:54 +0200 |
---|---|---|
committer | simonbrandhof <simon.brandhof@gmail.com> | 2011-03-28 15:43:54 +0200 |
commit | 51dda971500686f11b901c82da7a0b133d4034a3 (patch) | |
tree | a40853170af9d2356b619e5d1511035379f4cc2a | |
parent | 6217c0d3e45b7534eb9c1860bbe0599376d797e0 (diff) | |
download | sonarqube-51dda971500686f11b901c82da7a0b133d4034a3.tar.gz sonarqube-51dda971500686f11b901c82da7a0b133d4034a3.zip |
Improve rendering of violations
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/app/views/resource/index.html.erb | 4 | ||||
-rw-r--r-- | sonar-server/src/main/webapp/stylesheets/style.css | 10 |
2 files changed, 4 insertions, 10 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/resource/index.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/resource/index.html.erb index e4f575a928d..71d1e4634a3 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/resource/index.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/resource/index.html.erb @@ -59,8 +59,8 @@ elsif line.hits status=(line.hits>0 ? '' : 'ko') end - elsif @display_violations - status="sev#{line.violation_severity}" + elsif @display_violations && line.violations? + status="ko" end end %> diff --git a/sonar-server/src/main/webapp/stylesheets/style.css b/sonar-server/src/main/webapp/stylesheets/style.css index 9698968edec..e4e37fd9e39 100644 --- a/sonar-server/src/main/webapp/stylesheets/style.css +++ b/sonar-server/src/main/webapp/stylesheets/style.css @@ -699,17 +699,11 @@ span.rulename a:hover { border-top: 1px solid #6EC563; border-bottom: 1px solid #6EC563; } -.sources2 td.sev0, .sources2 td.sev1, .sources2 td.warn { - /* info, minor */ +.sources2 td.warn { background-color: #FFF6BF; - border-top: 1px solid #FFD324; - border-bottom: 1px solid #FFD324; } -.sources2 td.sev2, .sources2 td.sev3, .sources2 td.sev4, .sources2 td.ko { - /* major, critical, blocker */ +.sources2 td.ko { background-color: #FF9090; - border-top: 1px solid #FF5252; - border-bottom: 1px solid #FF5252; } .sources2 td.new_section { border-top: 1px solid #DDD; |