]> source.dussan.org Git - sonarqube.git/commitdiff
display variation values of master project
authorsimonbrandhof <simon.brandhof@gmail.com>
Thu, 30 Dec 2010 19:23:11 +0000 (19:23 +0000)
committersimonbrandhof <simon.brandhof@gmail.com>
Thu, 30 Dec 2010 19:23:11 +0000 (19:23 +0000)
sonar-server/src/main/webapp/WEB-INF/app/views/filters/_list.html.erb

index df1adafec8da22f17f44a757afdc57cebf7ae2c9..ece04cd569bbef5c7dd6652d42cc63980e581976 100644 (file)
       <td><% if logged_in? %><%= link_to_favourite(@masterproject.project) -%><% end %></td>
       <% filter.columns.each do |column| %>
       <td class="<%= column_align(column) -%>">
-        <% if column.on_metric? %><%= html_measure(@masterproject.measure(column.metric), nil, true, nil, nil, true, false) %>
+        <% if column.on_metric?
+           measure=@masterproject.measure(column.metric)
+        %>
+               <% if column.variation %>
+                       <%= format_variation(measure, :index => @filter_context.period_index, :style => 'light') -%>
+               <% else %>
+                       <%= format_measure(measure) -%>
+                       <% if @filter_context.selected_period? %>
+                               <%= format_variation(measure, :index => @filter_context.period_index) -%>
+                       <% else %>
+                               <%= trend_icon(measure, :empty => true) -%>
+                       <% end %>
+               <% end %>
         <% elsif column.on_name? %><%= qualifier_icon(@masterproject) %> <%= link_to_resource(@masterproject.project, h(@masterproject.project.name(true)), {:dashboard => true, :title => @masterproject.project.key}) %>
         <% elsif column.on_date? %><%= human_short_date(@masterproject.created_at) %>
         <% end %>