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