]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-2817 The Custom Measures widget is not displayed at all on IE7+
authorSimon Brandhof <simon.brandhof@gmail.com>
Wed, 21 Sep 2011 07:51:07 +0000 (09:51 +0200)
committerSimon Brandhof <simon.brandhof@gmail.com>
Wed, 21 Sep 2011 07:51:58 +0000 (09:51 +0200)
plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/custom_measures.html.erb

index bc6c5d5b94e9a172a99b7d4517d8dbbaa4f87574..e2ed71ea36815b4cbfe724e8a1e30e6e0acac281 100644 (file)
@@ -1,19 +1,25 @@
-<%
-(1..10).each do |index|
-  metric=widget_properties["metric#{index}"]
-  if metric
-    m=measure(metric)
-    if m
-%>
-  <div class="dashbox">
-    <p class="title"><%= metric.short_name -%></p>
-    <p>
-      <span class="big"><%= format_measure(m, :url => url_for_drilldown(m)) -%></span>
-      <%= dashboard_configuration.selected_period? ? format_variation(m) : trend_icon(m) -%>
-    </p>
-  </div>
-<%
-    end
-  end
-end
-%>
\ No newline at end of file
+<table class="width100">
+  <tr>
+    <td width="100%">
+      <%
+         (1..10).each do |index|
+           metric=widget_properties["metric#{index}"]
+           if metric
+             m=measure(metric)
+             if m
+      %>
+            <div class="dashbox">
+              <p class="title"><%= metric.short_name -%></p>
+              <p>
+                <span class="big"><%= format_measure(m, :url => url_for_drilldown(m)) -%></span>
+                <%= dashboard_configuration.selected_period? ? format_variation(m) : trend_icon(m) -%>
+              </p>
+            </div>
+          <%
+             end
+             end
+             end
+          %>
+    </td>
+  </tr>
+</table>
\ No newline at end of file