]> source.dussan.org Git - sonarqube.git/blob
10380f4f8cfcd8e879179760cd3f7f48af0a4691
[sonarqube.git] /
1 <%
2   package_tangle_index=measure('package_tangle_index')
3   if package_tangle_index
4 %>
5 <table width="100%">
6   <tbody>
7     <tr>
8     <%
9       if package_tangle_index
10         package_cycles=measure('package_cycles')
11         package_feedback_edges=measure('package_feedback_edges')
12         package_tangles=measure('package_tangles')
13     %>
14       <td valign="top" width="50%">
15         <div class="dashbox">
16           <p class="title">Package tangle index</p>
17           <p>
18             <span class="big"><%= format_measure(package_tangle_index, :suffix => '', :default => '-', :url => url_for_drilldown('package_tangle_index')) -%></span> <%= dashboard_configuration.variation? ? format_variation(package_tangle_index) : trend_icon(package_tangle_index, :big => true) -%>
19           </p>
20           <% if package_cycles %>
21           <p>
22             > <%= format_measure(package_cycles, :suffix => ' cycles', :url => url_for_drilldown('package_cycles')) %> <%= dashboard_configuration.variation? ? format_variation(package_cycles) : trend_icon(package_cycles) -%>
23           </p>
24           <% end %>
25         </div>
26       </td>
27       <td valign="top" width="50%">
28         <% if package_feedback_edges || package_tangles %>
29         <div class="dashbox">
30           <p class="title">Dependencies to cut</p>
31           <p>
32             <%= format_measure(package_feedback_edges, :suffix => ' between packages', :url => url_for_drilldown('package_feedback_edges')) %>
33             <%= dashboard_configuration.variation? ? format_variation(package_feedback_edges) : trend_icon(package_feedback_edges) -%>
34           </p>
35           <p>
36             <%= format_measure(package_tangles, :suffix => ' between files', :url => url_for_drilldown('package_tangles')) %>
37             <%= dashboard_configuration.variation? ? format_variation(package_tangles) : trend_icon(package_tangles) -%>
38           </p>
39         </div>
40         <% end %>
41       </td>
42     <% end %>
43     </tr>
44   </tbody>
45 </table>
46 <%
47   end
48 %>