From ae44cac7ac77b98df301e03ba3e386cff298aba6 Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Mon, 2 Feb 2015 10:27:14 +0100 Subject: [PATCH] SONAR-6041 fix missing top space issue --- .../sonar-web/src/main/hbs/design/design.hbs | 92 ++++--- .../WEB-INF/app/views/design/index.html.erb | 2 +- .../app/views/drilldown/measures.html.erb | 234 +++++++++--------- 3 files changed, 164 insertions(+), 164 deletions(-) diff --git a/server/sonar-web/src/main/hbs/design/design.hbs b/server/sonar-web/src/main/hbs/design/design.hbs index d8c86acbca7..39ec6432ee8 100644 --- a/server/sonar-web/src/main/hbs/design/design.hbs +++ b/server/sonar-web/src/main/hbs/design/design.hbs @@ -1,51 +1,49 @@ -
- + - + -
- - - {{#eachIndex items}} - - + {{/eachIndex}} + +
- {{qualifierIcon q}} {{n}} - {{#gt pt 0}} - {{pt}} - {{/gt}} - +
+ + + {{#eachIndex items}} + + + {{#eachIndex v}} + - {{#eachIndex v}} - - {{/eachIndex}} - - {{/eachIndex}} - -
+ {{qualifierIcon q}} {{n}} + {{#gt pt 0}} + {{pt}} + {{/gt}} + + + {{#eq index ../index}}–{{else}}{{w}}{{/eq}} - {{#eq index ../index}}–{{else}}{{w}}{{/eq}} -
-
- -
+ {{/eachIndex}} +
+ +
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/views/design/index.html.erb b/server/sonar-web/src/main/webapp/WEB-INF/app/views/design/index.html.erb index 5a2d7843739..4a6972ac14c 100644 --- a/server/sonar-web/src/main/webapp/WEB-INF/app/views/design/index.html.erb +++ b/server/sonar-web/src/main/webapp/WEB-INF/app/views/design/index.html.erb @@ -6,6 +6,6 @@ <% end %> -
+
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/views/drilldown/measures.html.erb b/server/sonar-web/src/main/webapp/WEB-INF/app/views/drilldown/measures.html.erb index b6f12ce75fa..eaf925d5c44 100644 --- a/server/sonar-web/src/main/webapp/WEB-INF/app/views/drilldown/measures.html.erb +++ b/server/sonar-web/src/main/webapp/WEB-INF/app/views/drilldown/measures.html.erb @@ -2,132 +2,134 @@ <% end %> -<%= render :partial => 'header' -%> +
+ <%= render :partial => 'header' -%> -<% if params[:period] && @snapshot.project_snapshot.periods? %> -
-

-
- + <% if params[:period] && @snapshot.project_snapshot.periods? %> +
+

+ + - - - -

-
-<% end %> + + +

+
+ <% end %> -
- <% if @characteristic %> -

<%= @highlighted_metric.short_name -%> / <%= h(@characteristic.name(true)) -%>

+
+ <% if @characteristic %> +

<%= @highlighted_metric.short_name -%> / <%= h(@characteristic.name(true)) -%>

-

<%= format_measure(@snapshot.characteristic_measure(@highlighted_metric, @characteristic)) %>

- <% else %> -

<%= @highlighted_metric.short_name -%>

+

<%= format_measure(@snapshot.characteristic_measure(@highlighted_metric, @characteristic)) %>

+ <% else %> +

<%= @highlighted_metric.short_name -%>

-

- <%= format_measure(@snapshot.measure(@highlighted_metric.key), :period => @period) %> -

- <% end %> - <% if @highlighted_metric!=@metric %> -

- <%= message('drilldown.drilldown_on') -%>  - <%= format_measure(@metric.key, :period => @period) -%> <%= @metric.short_name -%> -

- <% end %> -
- -
- <% - rids=[] - first_column=true - last_column = nil - @drilldown.columns.each_with_index do |column, index| - %> - <% if first_column %> - - +

+ <%= format_measure(@snapshot.measure(@highlighted_metric.key), :period => @period) %> +

<% end %> + <% if @highlighted_metric!=@metric %> +

+ <%= message('drilldown.drilldown_on') -%>  + <%= format_measure(@metric.key, :period => @period) -%> <%= @metric.short_name -%> +

+ <% end %> + - - - <% if column.switch? || index==@drilldown.columns.size-1 %> - -
-
- - <% column.measures.each_with_index do |measure, row_index| - resource=column.resource(measure) - selected = column.selected_snapshot && column.selected_snapshot.project_id==resource.id - clazz = cycle("even", "odd", :name => "col_#{index}") - clazz = clazz + ' selected' if selected - %> - - - - - <% end %> -
- <% if resource.source_code? %> - - <% else %> - <%= link_to(image_tag('zoom.png'), {:id => resource.id, :metric => @metric.id}, {:class => 'nolink'}) -%> - <% end %> - <%= qualifier_icon(resource) -%>  - <% if resource.source_code? %> - <%= h resource.name(false) %> - <% else %> - <%= link_to(h(resource.name), params.merge({:only_path => true, :rids => (selected ? rids-[resource.id] : rids+[resource.id])})) -%> - <% end %> - - <%= format_measure(measure, :skip_span_id => true, :period => @period) -%> -
-
-
- <% end - first_column = column.switch? - rids< + <% + rids=[] + first_column=true + last_column = nil + @drilldown.columns.each_with_index do |column, index| %> - <% if last_column && @drilldown.selected_project_not_authorized %> -

<%= message('not_authorized_to_access_project', {:params => last_column.selected_snapshot.project.name}) -%>

+ <% if first_column %> + + + <% end %> + + + + <% if column.switch? || index==@drilldown.columns.size-1 %> + +
+
+ + <% column.measures.each_with_index do |measure, row_index| + resource=column.resource(measure) + selected = column.selected_snapshot && column.selected_snapshot.project_id==resource.id + clazz = cycle("even", "odd", :name => "col_#{index}") + clazz = clazz + ' selected' if selected + %> + + + + + <% end %> +
+ <% if resource.source_code? %> + + <% else %> + <%= link_to(image_tag('zoom.png'), {:id => resource.id, :metric => @metric.id}, {:class => 'nolink'}) -%> + <% end %> + <%= qualifier_icon(resource) -%>  + <% if resource.source_code? %> + <%= h resource.name(false) %> + <% else %> + <%= link_to(h(resource.name), params.merge({:only_path => true, :rids => (selected ? rids-[resource.id] : rids+[resource.id])})) -%> + <% end %> + + <%= format_measure(measure, :skip_span_id => true, :period => @period) -%> +
+
+
+ <% end + first_column = column.switch? + rids< + <% if last_column && @drilldown.selected_project_not_authorized %> +

<%= message('not_authorized_to_access_project', {:params => last_column.selected_snapshot.project.name}) -%>

+ <% end %> +
+ + window.drilldown = { + metric: <% if @metric %>'<%= @metric.key -%>'<% else %>null<% end %>, + rule: null, + severity: null, + period: <% if @period %>'<%= @snapshot.period_datetime(@period) -%>'<% else %>null<% end %> + }; + -
+
-<%= render :partial => 'footer' -%> + <%= render :partial => 'footer' -%> +
-- 2.39.5