]> source.dussan.org Git - sonarqube.git/commitdiff
TimeMachine widget - Display only 3 snapshots & reduce header size
authorFabrice Bellingard <bellingard@gmail.com>
Fri, 13 Apr 2012 08:33:41 +0000 (10:33 +0200)
committerFabrice Bellingard <bellingard@gmail.com>
Fri, 13 Apr 2012 08:33:41 +0000 (10:33 +0200)
plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/TimeMachineWidget.java
plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/time_machine.html.erb

index 9c59d5671124340b1900191cd313e3ad3001d261..73c6dd8848b0531980f5b5ddf3548938712125b3 100644 (file)
@@ -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),
index 3d5f376e6c478fc29359c94f9e6af2cb8b929908..9a9b8ee12e432cbb8331a28c0f05db8c751bf582 100644 (file)
@@ -81,7 +81,7 @@
          snapshots.each do |snapshot|
            event = snapshot.event('Version')
       %>
-        <th nowrap="nowrap" style="vertical-align:top;text-align: right;font-size: 12px">
+        <th nowrap="nowrap" style="vertical-align:top;text-align: right;font-size: 10px">
           <%= l snapshot.created_at.to_date -%>
           <br/>
           <%= event.name unless event==nil -%>