aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2011-09-21 09:51:07 +0200
committerSimon Brandhof <simon.brandhof@gmail.com>2011-09-21 09:51:58 +0200
commita6cccc03fdf2c8b301c3d447ff357eb84b9e4700 (patch)
tree8d5f15086b2caca66d1677155b966271b1cc3053 /plugins
parent2afb84319b7f9426f58c2b5042de7642e51e022a (diff)
downloadsonarqube-a6cccc03fdf2c8b301c3d447ff357eb84b9e4700.tar.gz
sonarqube-a6cccc03fdf2c8b301c3d447ff357eb84b9e4700.zip
SONAR-2817 The Custom Measures widget is not displayed at all on IE7+
Diffstat (limited to 'plugins')
-rw-r--r--plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/custom_measures.html.erb44
1 files changed, 25 insertions, 19 deletions
diff --git a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/custom_measures.html.erb b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/custom_measures.html.erb
index bc6c5d5b94e..e2ed71ea368 100644
--- a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/custom_measures.html.erb
+++ b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/custom_measures.html.erb
@@ -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