From bdab023b4702e193017ed6f3a8365efc7e779f8b Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Tue, 18 Dec 2012 10:20:56 +0100 Subject: [PATCH] Fix compatibility with IE7 --- .../webapp/WEB-INF/app/views/all_projects/index.html.erb | 2 +- .../main/webapp/WEB-INF/app/views/layouts/_layout.html.erb | 7 ++++--- .../WEB-INF/app/views/measures/_display_list.html.erb | 6 +++--- sonar-server/src/main/webapp/stylesheets/layout.css | 6 +++--- sonar-server/src/main/webapp/stylesheets/style.css | 3 +++ 5 files changed, 14 insertions(+), 10 deletions(-) diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/all_projects/index.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/all_projects/index.html.erb index 4a65fb9a4d1..958b90d68ea 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/all_projects/index.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/all_projects/index.html.erb @@ -33,7 +33,7 @@ <% @filter.rows.each do |row| %> - + <% if display_favourites %> <%= link_to_favourite(row.snapshot.resource) -%> <% end %> diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_layout.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_layout.html.erb index 8afb945d4f8..307618d963e 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_layout.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_layout.html.erb @@ -65,7 +65,8 @@
  • <%= message('dependencies.page') -%>
  • - <%= message('comparison.page') -%>
  • + <%= message('comparison.page') -%> + <% elsif selected_section==Navigation::SECTION_RESOURCE %> <% ActiveDashboard.user_dashboards(current_user, false).each do |active_dashboard| %> @@ -153,9 +154,9 @@ <% end %> <%= yield :sidebar %> - + <% end %> diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/measures/_display_list.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/measures/_display_list.html.erb index b8bc8aa654f..9df1f2374d8 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/measures/_display_list.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/measures/_display_list.html.erb @@ -168,9 +168,9 @@ <% end %> <% filter.display.columns.each_with_index do |column, index| %> - <%= image_tag("controls/resultset_previous.png") -%> - <%= image_tag("cross-gray.png") -%> - <%= image_tag("controls/resultset_next.png") -%> + <%= image_tag("controls/resultset_previous.png", :alt => message('move_left')) -%> + <%= image_tag("cross-gray.png", :alt => message('measure_filter.delete_column')) -%> + <%= image_tag("controls/resultset_next.png", :alt => message('move_right')) -%> <% end %> <% end %> diff --git a/sonar-server/src/main/webapp/stylesheets/layout.css b/sonar-server/src/main/webapp/stylesheets/layout.css index ed76d28fd1c..1d706ab8baf 100644 --- a/sonar-server/src/main/webapp/stylesheets/layout.css +++ b/sonar-server/src/main/webapp/stylesheets/layout.css @@ -175,7 +175,7 @@ body, a { } #body { - position: relative; +/* position: relative;*/ } #footer { @@ -193,7 +193,7 @@ body, a { #sidebar { width: 150px; - position: absolute; + float:left; margin: 0 0 0 10px; top: 0; left: 0; @@ -245,7 +245,7 @@ ul.sidebar select, ul.sidebar input { #logo { text-align: center; - padding: 8px 0 0 0; + padding: 10px 0 0 0; } #logo a { diff --git a/sonar-server/src/main/webapp/stylesheets/style.css b/sonar-server/src/main/webapp/stylesheets/style.css index 967ba3be1f4..0968300fb6a 100644 --- a/sonar-server/src/main/webapp/stylesheets/style.css +++ b/sonar-server/src/main/webapp/stylesheets/style.css @@ -2118,6 +2118,9 @@ table.nowrap td, td.nowrap, th.nowrap { cursor: pointer; display: inline-block; text-decoration: none !important; + /* zoom and *display = ie7 hack for display:inline-block */ + zoom: 1; + *display: inline; } .dropdown-menu { -- 2.39.5