]> source.dussan.org Git - sonarqube.git/blob
5d9b7a2c796746bdf8745523b9429795320258ee
[sonarqube.git] /
1 <%
2    package_tangle_index=measure('package_tangle_index')
3    if package_tangle_index
4      package_cycles=measure('package_cycles')
5      package_feedback_edges=measure('package_feedback_edges')
6      package_tangles=measure('package_tangles')
7 %>
8   <div class="widget-row">
9     <div class="widget-span widget-span-5">
10       <div class="widget-measure-container">
11         <div class="widget-measure widget-measure-main">
12           <span class="widget-label"><%= message('widget.package_design.package_tangle_index') -%></span>
13           <span class="nowrap">
14             <%= format_measure(package_tangle_index, :suffix => '', :default => '-', :url => url_for_drilldown(package_tangle_index)) %>
15             <%= dashboard_configuration.selected_period? ? format_variation(package_tangle_index) : trend_icon(package_tangle_index) -%>
16           </span>
17         </div>
18
19         <% if package_cycles %>
20           <div class="widget-measure">
21             <span class="widget-label"><%= message('widget.package_design.cycles.suffix') -%></span>
22             <span class="nowrap">
23               <span class="widget-medium">&gt;</span>
24               <%= format_measure(package_cycles, :default => '-', :url => url_for_drilldown(package_cycles)) %>
25               <%= dashboard_configuration.selected_period? ? format_variation(package_cycles) : trend_icon(package_cycles) -%>
26             </span>
27           </div>
28         <% end %>
29       </div>
30     </div>
31
32     <div class="widget-span widget-span-5">
33       <div class="widget-measure-container">
34         <div class="widget-measure widget-measure-main">
35           <span class="widget-label"><%= message('widget.package_design.dependencies_to_cut') -%></span>
36         </div>
37
38         <% if package_feedback_edges %>
39           <div class="widget-measure">
40             <span class="widget-label"><%= message('widget.package_design.between_packages.suffix') -%></span>
41             <span class="nowrap">
42               <%= format_measure(package_feedback_edges, :default => '-', :url => url_for_drilldown(package_feedback_edges)) %>
43               <%= dashboard_configuration.selected_period? ? format_variation(package_feedback_edges) : trend_icon(package_feedback_edges) -%>
44             </span>
45           </div>
46         <% end %>
47
48         <% if package_tangles %>
49           <div class="widget-measure">
50             <span class="widget-label"><%= message('widget.package_design.between_files.suffix') -%></span>
51             <span class="nowrap">
52               <%= format_measure(package_tangles, :default => '-', :url => url_for_drilldown(package_tangles)) %>
53               <%= dashboard_configuration.selected_period? ? format_variation(package_tangles) : trend_icon(package_tangles) -%>
54             </span>
55           </div>
56         <% end %>
57       </div>
58     </div>
59   </div>
60
61 <% end %>