<%
- duplications=measure('duplicated_lines_density')
- if duplications
+ duplicated_lines_density=measure('duplicated_lines_density')
+ if duplicated_lines_density
%>
<table width="100%">
<tbody>
<div class="dashbox">
<p class="title"><%= message('widget.duplications.duplications') -%></p>
<p>
- <span class="big">
- <%= format_measure('duplicated_lines_density',:url => url_for_drilldown('duplicated_lines_density'))%></span>
- <%= dashboard_configuration.selected_period? ? format_variation('duplicated_lines_density') : trend_icon('duplicated_lines_density') -%>
- </span>
+ <span class="big"><%= format_measure(duplicated_lines_density, :suffix => '', :url => url_for_drilldown(Metric::DUPLICATED_LINES, :highlight => 'duplicated_lines_density')) %></span>
+ <%= dashboard_configuration.selected_period? ? format_variation('duplicated_lines_density') : trend_icon('duplicated_lines_density') -%>
</p>
<p>
- <%= format_measure(measure('duplicated_lines'),:url => url_for_drilldown('duplicated_lines'), :suffix => ' ' + message('widget.duplications.lines.suffix'))%>
+ <%= format_measure(measure('duplicated_lines'),:url => url_for_drilldown('duplicated_lines'), :suffix => message('widget.duplications.lines.suffix'))%>
<%= dashboard_configuration.selected_period? ? format_variation('duplicated_lines') : trend_icon('duplicated_lines') -%>
</p>
<p>
- <%= format_measure(measure('duplicated_blocks'),:url => url_for_drilldown('duplicated_blocks'), :suffix => ' ' + message('widget.duplications.blocks.suffix'))%>
+ <%= format_measure(measure('duplicated_blocks'),:url => url_for_drilldown('duplicated_blocks'), :suffix => message('widget.duplications.blocks.suffix'))%>
<%= dashboard_configuration.selected_period? ? format_variation('duplicated_blocks') : trend_icon('duplicated_blocks') -%>
</p>
<p>
- <%= format_measure(measure('duplicated_files'),:url => url_for_drilldown('duplicated_files'), :suffix => ' ' + message('widget.duplications.files.suffix'))%>
+ <%= format_measure(measure('duplicated_files'),:url => url_for_drilldown('duplicated_files'), :suffix => message('widget.duplications.files.suffix'))%>
<%= dashboard_configuration.selected_period? ? format_variation('duplicated_files') : trend_icon('duplicated_files') -%>
</p>
</div>