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
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>
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) -%>
20 <% if package_cycles %>
21 <div class="widget-measure">
22 <span class="widget-label"><%= message('widget.package_design.cycles.suffix') -%></span>
24 <span class="widget-medium">></span>
25 <%= format_measure(package_cycles, :default => '-', :url => dsm_url) %>
26 <%= dashboard_configuration.selected_period? ? format_variation(package_cycles) : trend_icon(package_cycles) -%>
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>
39 <% if package_feedback_edges %>
40 <div class="widget-measure">
41 <span class="widget-label"><%= message('widget.package_design.between_packages.suffix') -%></span>
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) -%>
49 <% if package_tangles %>
50 <div class="widget-measure">
51 <span class="widget-label"><%= message('widget.package_design.between_files.suffix') -%></span>
53 <%= format_measure(package_tangles, :default => '-', :url => dsm_url) %>
54 <%= dashboard_configuration.selected_period? ? format_variation(package_tangles) : trend_icon(package_tangles) -%>