]> source.dussan.org Git - sonarqube.git/commitdiff
Fix rendering in IE6
authorsimonbrandhof <simon.brandhof@gmail.com>
Fri, 18 Mar 2011 17:40:47 +0000 (18:40 +0100)
committersimonbrandhof <simon.brandhof@gmail.com>
Fri, 18 Mar 2011 17:40:47 +0000 (18:40 +0100)
sonar-server/src/main/webapp/WEB-INF/app/controllers/resource_controller.rb
sonar-server/src/main/webapp/WEB-INF/app/views/resource/_header_coverage.html.erb
sonar-server/src/main/webapp/WEB-INF/app/views/resource/_header_violations.html.erb
sonar-server/src/main/webapp/WEB-INF/app/views/resource/_measure.html.erb
sonar-server/src/main/webapp/stylesheets/style.css

index 40c1ccf4614252c9566632f96ab00bc6ac0b3df1..c66a9272183b715667c7e4c2f12aaa1e1a1f4936 100644 (file)
@@ -303,7 +303,8 @@ class ResourceController < ApplicationController
     end
 
     def highlighted?
-      !hidden? && @highlighted==true
+      # highlighted if the @highlighted has not been set or has been set to true
+      !hidden? && @highlighted!=false
     end
 
     def deprecated_conditions_label=(label)
index a7a297576bd0ac82fe28788882f41fb18b12c9fa..96c67ece219c5df1dfe0a5166c4bf7fcc7bc80ca 100644 (file)
@@ -1,7 +1,7 @@
 <div id="coverage_header" class="tab_header">
     <% if @period && measure('new_coverage') %>
       <p>On new code:</p>
-      <table class="metrics">
+      <table>
         <tr>
           <td class="big" rowspan="2"><%= format_variation('new_coverage', :period => @period, :style => 'none') -%></td>
 
@@ -41,7 +41,7 @@
         </tr>
       </table>
     <% else %>
-      <table class="metrics">
+      <table>
         <tr>
           <td class="big" rowspan="2"><%= format_measure('coverage', :default => '-') -%></td>
           <td class="sep"> </td>
@@ -60,6 +60,5 @@
     <% end %>
   
   <%= render :partial => 'options' -%>
-  <div class="clear"></div>
 </div>
 
index fc97be464c7498fac00142c4c2a5766f3da31a82..9e6522c5f880148d706b3e6678203feae9cddd09 100644 (file)
@@ -1,40 +1,30 @@
 <div id="violations_header" class="tab_header">
   <% if @period && measure('new_violations') %>
-    <table class="bottomcol">
+    <table>
       <tr>
         <td><span class="big"><%= format_variation('new_violations', :default => 0, :period => @period, :style => 'none') -%></span> new violations</td>
-      </tr>
-    </table>
-    <table class="bottomcol">
-      <tr>
+
+        <td class="sep"> </td>
         <td><%= image_tag 'priority/BLOCKER.png' -%></td>
         <td class="name">Blocker:</td>
         <td class="value"><%= format_variation('new_blocker_violations', :default => 0, :period => @period, :style => 'none') -%></td>
-      </tr>
-    </table>
-    <table class="bottomcol">
-      <tr>
+
+        <td class="sep"> </td>
         <td><%= image_tag 'priority/CRITICAL.png' -%></td>
         <td class="name">Critical:</td>
         <td class="value"><%= format_variation('new_critical_violations', :default => 0, :period => @period, :style => 'none') -%></td>
-      </tr>
-    </table>
-    <table class="bottomcol">
-      <tr>
+
+        <td class="sep"> </td>
         <td><%= image_tag 'priority/MAJOR.png' -%></td>
         <td class="name">Major:</td>
         <td class="value"><%= format_variation('new_major_violations', :default => 0, :period => @period, :style => 'none') -%></td>
-      </tr>
-    </table>
-    <table class="bottomcol">
-      <tr>
+
+        <td class="sep"> </td>
         <td><%= image_tag 'priority/MINOR.png' -%></td>
         <td class="name">Minor:</td>
         <td class="value"><%= format_variation('new_minor_violations', :default => 0, :period => @period, :style => 'none') -%></td>
-      </tr>
-    </table>
-    <table class="bottomcol">
-      <tr>
+
+        <td class="sep"> </td>
         <td><%= image_tag 'priority/INFO.png' -%></td>
         <td class="name">Info:</td>
         <td class="value"><%= format_variation('new_info_violations', :default => 0, :period => @period, :style => 'none') -%></td>
     </table>
 
   <% else %>
-    <table class="bottomcol">
+    <table class="sourceHeader">
       <tr>
-        <td><span class="big"><%= format_measure('violations', :default => 0) -%></span> violations</td>
-      </tr>
-    </table>
-    <table class="bottomcol">
-      <tr>
-        <td><%= image_tag 'priority/BLOCKER.png' -%></td>
+        <td nowrap><span class="big"><%= format_measure('violations', :default => 0) -%></span> violations</td>
+
+        <td class="sep"> </td>
+        <td nowrap><%= image_tag 'priority/BLOCKER.png' -%></td>
         <td class="name">Blocker:</td>
         <td class="value"><%= format_measure('blocker_violations', :default => 0) -%></td>
-      </tr>
-    </table>
-    <table class="bottomcol">
-      <tr>
+
+        <td class="sep"> </td>
         <td><%= image_tag 'priority/CRITICAL.png' -%></td>
         <td class="name">Critical:</td>
         <td class="value"><%= format_measure('critical_violations', :default => 0) -%></td>
-      </tr>
-    </table>
-    <table class="bottomcol">
-      <tr>
+
+        <td class="sep"> </td>
         <td><%= image_tag 'priority/MAJOR.png' -%></td>
         <td class="name">Major:</td>
         <td class="value"><%= format_measure('major_violations', :default => 0) -%></td>
-      </tr>
-    </table>
-    <table class="bottomcol">
-      <tr>
+
+        <td class="sep"> </td>
         <td><%= image_tag 'priority/MINOR.png' -%></td>
         <td class="name">Minor:</td>
         <td class="value"><%= format_measure('minor_violations', :default => 0) -%></td>
-      </tr>
-    </table>
-    <table class="bottomcol">
-      <tr>
+
+        <td class="sep"> </td>
         <td><%= image_tag 'priority/INFO.png' -%></td>
         <td class="name">Info:</td>
         <td class="value"><%= format_measure('info_violations', :default => 0) -%></td>
@@ -85,6 +65,6 @@
   <% end %>
 
   <%= render :partial => 'options' -%>
-  <div class="clear"></div>
+  
 </div>
 
index ba75aeb993db0c01cddc79b3ccf5c3b49d3b263a..6bbc9d09136c74d522cd6c2eb3a3c115daca4dc5 100644 (file)
@@ -2,9 +2,7 @@
   <td class="name"><%= h(title) -%>: </td>
   <td class="value">
     <%= format_measure(measure) -%>
-    <% if defined?(ratio) && ratio %>
-    /<%= format_measure(ratio) -%>
-    <% end %>
+    <% if defined?(ratio) && ratio %> / <%= format_measure(ratio) -%><% end %>
   </td>
 <% else %>
   <td colspan="2"></td>
index ea9c29643e549cfcaa078ee7d3861e2df4338c7b..2e666eebf992ad3f336293e8f5d350d352d60a34 100644 (file)
@@ -612,12 +612,6 @@ ul.operations li a {
 
 
 /* SOURCE */
-#source_metrics {
-  width: 100%;
-}
-#source_metrics {
-  width: 100%;
-}
 .sources2 {
   width: 100%;
   border-top: 1px solid #DDD;
@@ -748,20 +742,7 @@ span.rulename a:hover {
   margin-bottom: 10px;
   color: #444;
 }
-.tab_header .col {
-  vertical-align:top;
-}
-.tab_header table.metrics {
-  margin-right: 10px;
-  display: inline-block;
-  vertical-align: top;
-}
-.tab_header table.bottomcol {
-  margin-right: 10px;
-  display: inline-block;
-  vertical-align: bottom;
-}
-.tab_header table.metrics td, .tab_header table.bottomcol td {
+.tab_header td {
   padding-right: 7px;
 }
 .tab_header td.name {
@@ -790,8 +771,6 @@ span.rulename a:hover {
 
 
 
-
-
 #gwtpage {
        width: 100%;
        clear: both;