diff options
author | simonbrandhof <simon.brandhof@gmail.com> | 2010-12-30 19:23:11 +0000 |
---|---|---|
committer | simonbrandhof <simon.brandhof@gmail.com> | 2010-12-30 19:23:11 +0000 |
commit | 6eb3f50b80d25a4f4f26f0d9a8be78bd109eb376 (patch) | |
tree | eda9fbabc764be1dcdf5d039ecd46dfd158f5b2a | |
parent | b78fbc3cf0a12cae39303d29d349e9db6d9d2027 (diff) | |
download | sonarqube-6eb3f50b80d25a4f4f26f0d9a8be78bd109eb376.tar.gz sonarqube-6eb3f50b80d25a4f4f26f0d9a8be78bd109eb376.zip |
display variation values of master project
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/app/views/filters/_list.html.erb | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/filters/_list.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/filters/_list.html.erb index df1adafec8d..ece04cd569b 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/filters/_list.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/filters/_list.html.erb @@ -64,7 +64,19 @@ <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 %> |