James Moger
2011-05-19 9da97003c7f33a64ae5060f413f9c4c5d26efe78
src/com/gitblit/wicket/pages/SummaryPage.java
@@ -19,6 +19,7 @@
import org.wicketstuff.googlecharts.MarkerType;
import org.wicketstuff.googlecharts.ShapeMarker;
import com.gitblit.Constants.AccessRestrictionType;
import com.gitblit.GitBlit;
import com.gitblit.Keys;
import com.gitblit.utils.JGitUtils;
@@ -66,11 +67,29 @@
      } else {
         add(new Label("repositoryStats", MessageFormat.format("{0} commits and {1} tags in {2}", metricsTotal.count, metricsTotal.tag, TimeUtils.duration(metricsTotal.duration))));
      }
      AccessRestrictionType accessRestriction = getRepositoryModel().accessRestriction;
      switch (accessRestriction) {
      case NONE:
         add(WicketUtils.newClearPixel("accessRestrictionIcon").setVisible(false));
         break;
      case PUSH:
         add(WicketUtils.newImage("accessRestrictionIcon", "lock_go_16x16.png", getAccessRestrictions().get(accessRestriction)));
         break;
      case CLONE:
         add(WicketUtils.newImage("accessRestrictionIcon", "lock_pull_16x16.png", getAccessRestrictions().get(accessRestriction)));
         break;
      case VIEW:
         add(WicketUtils.newImage("accessRestrictionIcon", "shield_16x16.png", getAccessRestrictions().get(accessRestriction)));
         break;
      default:
         add(WicketUtils.newClearPixel("accessRestrictionIcon").setVisible(false));
      }
      add(new Label("repositoryCloneUrl", GitBlit.self().getCloneUrl(repositoryName)));
      add(new LogPanel("commitsPanel", repositoryName, null, r, numberCommits, 0));
      add(new TagsPanel("tagsPanel", repositoryName, r, numberRefs));
      add(new BranchesPanel("branchesPanel", repositoryName, r, numberRefs));
      add(new BranchesPanel("branchesPanel", getRepositoryModel(), r, numberRefs));
      // Display an activity line graph
      insertActivityGraph(metrics);