James Moger
2011-06-08 008322bec70a3a20bd00ed2219215a9f42fe0ca5
src/com/gitblit/wicket/pages/MetricsPage.java
@@ -46,18 +46,18 @@
public class MetricsPage extends RepositoryPage {
   public MetricsPage(PageParameters params) {
      super(params);
      super(params);
      Repository r = getRepository();
      add(new Label("branchTitle", objectId));
      Metric metricsTotal = null;
      List<Metric> metrics = MetricUtils.getDateMetrics(r, objectId, true, null);
      metricsTotal = metrics.remove(0);
      if (metricsTotal == null) {
         add(new Label("branchStats", ""));
         add(new Label("branchStats", ""));
      } else {
         add(new Label("branchStats", MessageFormat.format(
               "{0} commits and {1} tags in {2}", metricsTotal.count, metricsTotal.tag,
               TimeUtils.duration(metricsTotal.duration))));
         add(new Label("branchStats",
               MessageFormat.format("{0} commits and {1} tags in {2}", metricsTotal.count,
                     metricsTotal.tag, TimeUtils.duration(metricsTotal.duration))));
      }
      insertLinePlot("commitsChart", metrics);
      insertBarPlot("dayOfWeekChart", getDayOfWeekMetrics(r, objectId));