<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>
.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;