From 260fc085cf84e78a860c3c843de55d50c05b78c1 Mon Sep 17 00:00:00 2001 From: Fabrice Bellingard Date: Fri, 13 Apr 2012 10:33:41 +0200 Subject: [PATCH] TimeMachine widget - Display only 3 snapshots & reduce header size --- .../java/org/sonar/plugins/core/widgets/TimeMachineWidget.java | 2 +- .../org/sonar/plugins/core/widgets/time_machine.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/TimeMachineWidget.java b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/TimeMachineWidget.java index 9c59d567112..73c6dd8848b 100644 --- a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/TimeMachineWidget.java +++ b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/TimeMachineWidget.java @@ -29,7 +29,7 @@ import org.sonar.api.web.WidgetPropertyType; @WidgetCategory({ "History" }) @WidgetProperties( { - @WidgetProperty(key = "numberOfColumns", type = WidgetPropertyType.INTEGER, defaultValue = "4"), + @WidgetProperty(key = "numberOfColumns", type = WidgetPropertyType.INTEGER, defaultValue = "3"), @WidgetProperty(key = "displaySparkLine", type = WidgetPropertyType.BOOLEAN), @WidgetProperty(key = "metric1", type = WidgetPropertyType.METRIC, defaultValue = "ncloc"), @WidgetProperty(key = "metric2", type = WidgetPropertyType.METRIC), diff --git a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/time_machine.html.erb b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/time_machine.html.erb index 3d5f376e6c4..9a9b8ee12e4 100644 --- a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/time_machine.html.erb +++ b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/time_machine.html.erb @@ -81,7 +81,7 @@ snapshots.each do |snapshot| event = snapshot.event('Version') %> - + <%= l snapshot.created_at.to_date -%>
<%= event.name unless event==nil -%> -- 2.39.5