James Moger
2011-04-29 bc9d4a0f2266e5ac1a018f0b691c76d53479b9e5
src/com/gitblit/wicket/pages/SummaryPage.java
@@ -7,9 +7,7 @@
import org.apache.wicket.PageParameters;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.html.image.ContextImage;
import org.eclipse.jgit.lib.Repository;
import org.wicketstuff.googlecharts.AbstractChartData;
import org.wicketstuff.googlecharts.Chart;
import org.wicketstuff.googlecharts.ChartAxis;
@@ -20,6 +18,7 @@
import org.wicketstuff.googlecharts.LineStyle;
import org.wicketstuff.googlecharts.MarkerType;
import org.wicketstuff.googlecharts.ShapeMarker;
import com.gitblit.GitBlit;
import com.gitblit.Keys;
import com.gitblit.utils.JGitUtils;
@@ -58,8 +57,8 @@
      }
      // repository description
      add(new Label("repositoryDescription", description));
      add(new Label("repositoryOwner", JGitUtils.getRepositoryOwner(r)));
      add(new Label("repositoryDescription", getRepositoryModel().description));
      add(new Label("repositoryOwner", getRepositoryModel().owner));
      add(WicketUtils.createTimestampLabel("repositoryLastChange", JGitUtils.getLastChange(r), getTimeZone()));
      if (metricsTotal == null) {
@@ -83,7 +82,7 @@
   }
   private void insertActivityGraph(List<Metric> metrics) {
      if (GitBlit.self().settings().getBoolean(Keys.web.generateActivityGraph, true)) {
      if (metrics.size() > 0 && GitBlit.self().settings().getBoolean(Keys.web.generateActivityGraph, true)) {
         IChartData data = getChartData(metrics);
         ChartProvider provider = new ChartProvider(new Dimension(400, 100), ChartType.LINE, data);
@@ -96,11 +95,11 @@
         provider.addAxis(commitAxis);
         provider.setLineStyles(new LineStyle[] {new LineStyle(2, 4, 0), new LineStyle(0, 4, 1)});   
         provider.addShapeMarker(new ShapeMarker(MarkerType.DIAMOND, Color.BLUE, 1, -1, 5));
         provider.addShapeMarker(new ShapeMarker(MarkerType.CIRCLE, Color.BLUE, 1, -1, 5));
         
         add(new Chart("commitsChart", provider));
      } else {
         add(new ContextImage("commitsChart", "blank.png"));
         add(WicketUtils.newBlankImage("commitsChart"));
      }
   }