]> source.dussan.org Git - sonarqube.git/commitdiff
Improve rendering of violations
authorsimonbrandhof <simon.brandhof@gmail.com>
Fri, 18 Mar 2011 18:01:25 +0000 (19:01 +0100)
committersimonbrandhof <simon.brandhof@gmail.com>
Fri, 18 Mar 2011 18:01:25 +0000 (19:01 +0100)
sonar-server/src/main/webapp/WEB-INF/app/views/resource/index.html.erb
sonar-server/src/main/webapp/stylesheets/style.css

index 0500fc1c5c818349d99de777995412c68d55298f..e4f575a928d664a2ffa985ac4f07865878c591b8 100644 (file)
     <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>
index 2e666eebf992ad3f336293e8f5d350d352d60a34..9698968edec3d8fa8409158e6227fb1840ea9152 100644 (file)
@@ -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;