James Moger
2011-05-12 f988253399ee475aa4f4e60adb95a220f8f88d21
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,6 +67,24 @@
      } 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));