if @dashboard_configuration.selected_period?
violations_variation = variation_value(violations)
new_violations_variation = variation_value(new_violations)
- estimated_cleared_violations = (violations_variation - new_violations_variation).to_i if violations_variation && new_violations_variation
+ estimated_cleared_violations = (new_violations_variation - violations_variation).to_i if violations_variation && new_violations_variation
%>
<% if new_violations_variation && new_violations_variation > 0 %>
<br/>
<span style="font-weight: bold">
- <%= message('widget.rules.on_new_code') -%>
+ <%= message('widget.rules.added') -%>
<a href="<%= url_for(:controller => 'drilldown', :action => 'violations', :id => @project.key, :period => dashboard_configuration.period_index) -%>" class="varw"><%= format_variation(new_violations, :style => 'none', :default => '-') -%></a>
</span>
<% end %>
- <% if estimated_cleared_violations && estimated_cleared_violations < 0 %>
+ <% if estimated_cleared_violations && estimated_cleared_violations > 0 %>
<br/>
<span style="font-weight: bold">
- <%= message('widget.rules.on_old_code') -%>
+ <%= message('widget.rules.removed') -%>
<span class="varb"><%= estimated_cleared_violations -%></span>
</span>
<% end %>
widget.rules.rules_compliance=Rules compliance
widget.rules.on_new_code=On new code:
widget.rules.on_old_code=On old code:
+widget.rules.added=Added:
+widget.rules.removed=Removed:
widget.size.name=Size metrics
widget.size.description=Reports general metrics on the size of the project.