3 (1..10).each do |index|
4 metric=widget_properties["metric#{index}"]
5 m=(metric ? measure(metric) : nil)
8 period = params[:period]
12 <table class="width100">
16 measures.each do |measure|
17 if measure.visible?(period.to_i)
20 <p class="title"><%= measure.metric.short_name -%></p>
22 <% if measure.value.nil? -%>
23 <%# This is a differential measure -%>
24 <span class="big"><%= format_measure(measure, :url => url_for_drilldown(measure, :period => period), :period => period) -%></span>
26 <%# This is a classic measure that can have a differential -%>
27 <span class="big"><%= format_measure(measure, :url => url_for_drilldown(measure)) -%></span>
28 <%= dashboard_configuration.selected_period? ? format_variation(measure) : trend_icon(measure) -%>