diff options
author | simonbrandhof <simon.brandhof@gmail.com> | 2011-03-18 19:01:25 +0100 |
---|---|---|
committer | simonbrandhof <simon.brandhof@gmail.com> | 2011-03-18 19:01:25 +0100 |
commit | b22c2f7ec2c79d8f962e0b39f216124f336de475 (patch) | |
tree | b3715ef407d976e1f9a9134238821997de5f0624 /sonar-server | |
parent | fa2b7833a2956ae4644dfa1bafee38dc6fefa33f (diff) | |
download | sonarqube-b22c2f7ec2c79d8f962e0b39f216124f336de475.tar.gz sonarqube-b22c2f7ec2c79d8f962e0b39f216124f336de475.zip |
Improve rendering of violations
Diffstat (limited to 'sonar-server')
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/app/views/resource/index.html.erb | 2 | ||||
-rw-r--r-- | sonar-server/src/main/webapp/stylesheets/style.css | 10 |
2 files changed, 9 insertions, 3 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 0500fc1c5c8..e4f575a928d 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 @@ -97,9 +97,11 @@ <td class="line <%= status -%>"> <pre><%= line.source -%></pre> <% if @display_violations && line.violations? %> + <div class="violations"> <% line.violations.each do |violation| %> <%= render :partial => 'violation', :locals => {:violation => violation} -%> <% end %> + </div> <% end %> </td> </tr> diff --git a/sonar-server/src/main/webapp/stylesheets/style.css b/sonar-server/src/main/webapp/stylesheets/style.css index 2e666eebf99..9698968edec 100644 --- a/sonar-server/src/main/webapp/stylesheets/style.css +++ b/sonar-server/src/main/webapp/stylesheets/style.css @@ -650,11 +650,15 @@ ul.operations li a { .sources2 span.author, .sources2 span.author a { font-size: 85%; } +.sources2 div.violations { + background-color: #EFEFEF; + margin: 2px; + border: 1px solid #DDD; +} .sources2 div.violation { - padding: 3px 0.5em; - border: 1px solid #DDDDDD; background-color: #EFEFEF; - margin: 5px 10px; + margin: 0; + padding: 3px 5px; } span.rulename, span.rulename a { color: #4183C4; |