From a131f472794e535183ece8c3a163dd5d1de7a839 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Tue, 12 Jul 2011 14:34:13 +0200 Subject: Fix compatibility with IE6 and IE7 --- .../webapp/WEB-INF/app/views/cloud/index.html.erb | 5 +-- .../WEB-INF/app/views/dashboard/index.html.erb | 36 ++++++++++---------- .../WEB-INF/app/views/drilldown/measures.html.erb | 2 +- .../src/main/webapp/stylesheets/dashboard.css | 1 - sonar-server/src/main/webapp/stylesheets/style.css | 38 ++++++++++++++-------- 5 files changed, 48 insertions(+), 34 deletions(-) (limited to 'sonar-server') diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/cloud/index.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/cloud/index.html.erb index 2ce1a913233..609dc6fcff1 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/cloud/index.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/cloud/index.html.erb @@ -20,8 +20,8 @@
    -
  • - Color: +
  • + Color:
  • +
  • onclick="document.forms['cloudform'].submit()" id="radio-quick"> diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/dashboard/index.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/dashboard/index.html.erb index 1e6d6f9e9be..6332e6e65be 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/dashboard/index.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/dashboard/index.html.erb @@ -1,26 +1,28 @@
    <%= render :partial => 'dashboard/header', :locals => {:back => false} %> - +
    <% - columns=@dashboard.column_layout.split('-') - for index in 1..columns.size() + columns=@dashboard.column_layout.split('-') + for index in 1..columns.size() %> -
    -
    0px <%= index>1 ? "5px" : "0px" -%>;"> - <% - @dashboard.widgets.select{|widget| widget.column_index==index}.sort_by{|widget| widget.row_index}.each do |widget| - widget_definition=@widget_definitions.find{|wd| wd.getId()==widget.widget_key } - if widget_definition - %> -
    - <%= render :partial => 'dashboard/widget', :locals => {:widget => widget, :definition => widget_definition} %> + +
    +
    0px <%= index>1 ? "5px" : "0px" -%>;"> + <% + @dashboard.widgets.select { |widget| widget.column_index==index }.sort_by { |widget| widget.row_index }.each do |widget| + widget_definition=@widget_definitions.find { |wd| wd.getId()==widget.widget_key } + if widget_definition + %> +
    + <%= render :partial => 'dashboard/widget', :locals => {:widget => widget, :definition => widget_definition} %> +
    + <% + end + end + %>
    - <% - end - end - %>
    -
    <% end %> +
    \ No newline at end of file diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/drilldown/measures.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/drilldown/measures.html.erb index feb41688e90..a3d3cb61ca4 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/drilldown/measures.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/drilldown/measures.html.erb @@ -31,7 +31,7 @@ <% end %>
      - +
    <% if @highlighted_metric!=@metric %> diff --git a/sonar-server/src/main/webapp/stylesheets/dashboard.css b/sonar-server/src/main/webapp/stylesheets/dashboard.css index d48c406b301..7f2c344f15c 100644 --- a/sonar-server/src/main/webapp/stylesheets/dashboard.css +++ b/sonar-server/src/main/webapp/stylesheets/dashboard.css @@ -128,7 +128,6 @@ float: left; margin: 0; padding: 0; - clear: right; } #dashboard .column-handle { diff --git a/sonar-server/src/main/webapp/stylesheets/style.css b/sonar-server/src/main/webapp/stylesheets/style.css index b0eac2a9067..32347f77aff 100644 --- a/sonar-server/src/main/webapp/stylesheets/style.css +++ b/sonar-server/src/main/webapp/stylesheets/style.css @@ -77,9 +77,13 @@ div#hd { color: #fff; padding: 0 0 0 10px; } +#crumbs li { + height: 30px; + line-height: 30px; + vertical-align: middle; +} #crumbs li a, #nav li a { color: #fff; - vertical-align: middle; } #crumbs li a:link, #crumbs li a:visited, #nav li a:link, #nav li a:visited { text-decoration:none; @@ -94,14 +98,14 @@ div#hd { text-align: left; margin: 50px 180px 0; } +div#body { + position: relative; + width: 100%; +} div#footer { - padding-top: 10px; - margin: 0 10px; + margin: 10px; clear: both; } -div#body { - height: 100%; -} .with_sidebar { margin: 0 10px 0 170px; } @@ -114,8 +118,10 @@ div#content { } div#sb { width: 150px; - float: left; + position: absolute; margin: 0 10px; + top: 0; + left: 0; } div#sidebar { background-color: #CAE3F2; @@ -1226,7 +1232,7 @@ div.autocomplete strong { float: left; vertical-align: top; text-align: left; - min-width: 60px; + padding: 0 10px 7px 0; } @@ -1258,18 +1264,24 @@ table.header1 td { color: #444; border: 1px solid #DDD; margin: 0 0 10px 0; - line-height: 30px; - height: 30px; + line-height: 28px; + height: 28px; } ul.headerLine li { float: left; display: block; padding: 0 10px 0; - background: url("../images/sep12.png") no-repeat scroll 0 50% transparent; + height: 28px; + vertical-align: middle; } -ul.headerLine li.first { - background: none; +ul.headerLine li.sep { + background: url("../images/sep12.png") no-repeat scroll 50% 50% transparent; + padding: 0 5px 0 5px; } +ul.headerLine select, ul.headerLine input, ul.headerLine button, ul.headerLine textarea, ul.headerLine span { + vertical-align: middle; +} + select.withIcons option { background-repeat: no-repeat; background-position: 2px 0; -- cgit v1.2.3
    Drilldown on <%= format_measure(@metric.key, :period => @period) -%> <%= @metric.short_name -%>