if lcom
lcom_distribution=measure('lcom4_distribution')
suspect_lcom4_density=measure('suspect_lcom4_density')
+
+ display_chart = suspect_lcom4_density && suspect_lcom4_density.value>1.0 && lcom_distribution && !lcom_distribution.data.blank?
%>
<table width="100%">
<tbody>
<tr>
- <td valign="top">
+ <td valign="top" width="<%= display_chart ? '50' : '100' -%>%">
<div class="dashbox">
<h3><%= message('widget.lcom4.title') -%></h3>
<p>
</td>
<%
- if suspect_lcom4_density && suspect_lcom4_density.value>1.0 && lcom_distribution && !lcom_distribution.data.blank?
+ if display_chart
query="ck=distbar&c=777777&w=180&h=100&fs=8&bgc=ffffff&v=" + u(lcom_distribution.data)
%>
- <td>
+ <td valign="top" width="50px">
<a href="<%= url_for_drilldown('lcom4') -%>"><%= chart(query, :id => 'lcom4_distribution', :alt => '') -%></a>
</td>
<% end %>
rfc=measure('rfc')
if rfc
rfc_distribution=measure('rfc_distribution')
+
+ display_chart = rfc_distribution && !rfc_distribution.data.blank?
%>
<table width="100%">
<tbody>
<tr>
- <td valign="top">
+ <td valign="top" width="<%= display_chart ? '50' : '100' -%>%">
<div class="dashbox">
<h3><%= message('widget.rfc.title') -%></h3>
<p><span class="big">
</td>
<%
- if rfc_distribution && !rfc_distribution.data.blank?
+ if display_chart
query="ck=distbar&c=777777&w=180&h=100&fs=8&bgc=ffffff&v=" + u(rfc_distribution.data)
%>
- <td>
+ <td valign="top" width="50px">
<a href="<%= url_for_drilldown('rfc') -%>"><%= chart(query, :id => 'rfc_distribution', :alt => '') -%></a>
</td>
<% end %>