]> source.dussan.org Git - sonarqube.git/blob
2fcac1fc7a9c1bd1e397017e5a3a72eee67efe2d
[sonarqube.git] /
1 <%
2   file_tangle_index=measure('file_tangle_index')
3   if file_tangle_index
4     file_cycles=measure('file_cycles')
5     file_feedback_edges=measure('file_feedback_edges')
6 %>
7 <table width="100%">
8   <tbody>
9     <tr>
10       <td valign="top" width="50%">
11         <div class="dashbox">
12           <p class="title"><%= message('widget.file_design.file_tangle_index') -%></p>
13           <p>
14             <span class="big"><%= format_measure(file_tangle_index, :suffix => '', :default => '-', :url => url_for_drilldown('file_tangle_index')) -%></span> <%= dashboard_configuration.selected_period? ? format_variation(file_tangle_index) : trend_icon(file_tangle_index, :big => true) -%>
15           </p>
16           <% if file_cycles %>
17           <p>
18             > <%= format_measure(file_cycles, :suffix => message('widget.file_design.cycles.suffix'), :url => url_for_drilldown('file_cycles')) %> <%= dashboard_configuration.selected_period? ? format_variation(file_cycles) : trend_icon(file_cycles) -%>
19           </p>
20           <% end %>
21         </div>
22       </td>
23       <td valign="top" width="50%">
24         <% if file_feedback_edges %>
25         <div class="dashbox">
26           <p class="title"><%= message('widget.file_design.suspect_file_dependencies') -%></p>
27           <p>
28             <span class="big"><%= format_measure(file_feedback_edges, :url => url_for_drilldown('file_feedback_edges')) -%></span> <%= dashboard_configuration.selected_period? ? format_variation(file_feedback_edges) : trend_icon(file_feedback_edges, :big => true) -%>
29           </p>
30         </div>
31         <% end %>
32       </td>
33     </tr>
34   </tbody>
35 </table>
36 <%
37   end
38 %>